/* MyCare Forgot Password Page Styles */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.reset-container {
    background: white;
    max-width: 800px;
    width: 100%;
    padding: 60px 80px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-img {
    max-width: 280px;
    height: auto;
}

/* Header */
.reset-header {
    margin-bottom: 20px;
}

.reset-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.reset-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Form */
.reset-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s;
    background: white;
    color: #1f2937;
}

.form-input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Send Reset Link Button */
.reset-button {
    width: 100%;
    padding: 14px 24px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 20px;
}

.reset-button:hover:not(:disabled) {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.reset-button:active:not(:disabled) {
    transform: translateY(0);
}

.reset-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.reset-button.loading .button-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Return to Login Link */
.return-login {
    text-align: center;
    margin-top: 20px;
}

.return-login a {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.return-login a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-content {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive */

/* Large Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .reset-container {
        max-width: 700px;
        padding: 50px 60px;
    }

    .logo-img {
        max-width: 240px;
    }
}

/* Tablets (600px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .reset-container {
        padding: 40px 40px;
        max-width: 100%;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .logo-img {
        max-width: 220px;
    }

    .reset-header h1 {
        font-size: 24px;
    }

    .reset-description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Mobile Devices (480px - 600px) */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .reset-container {
        padding: 35px 30px;
        border-radius: 6px;
    }

    .logo-img {
        max-width: 200px;
    }

    .reset-header h1 {
        font-size: 22px;
    }

    .reset-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-label {
        font-size: 13px;
    }

    .reset-button {
        padding: 13px 20px;
        font-size: 15px;
    }

    .return-login a {
        font-size: 13px;
    }

    .alert {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .reset-container {
        padding: 30px 20px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    }

    .logo-container {
        margin-bottom: 25px;
    }

    .logo-img {
        max-width: 180px;
    }

    .reset-header {
        margin-bottom: 15px;
    }

    .reset-header h1 {
        font-size: 20px;
    }

    .reset-description {
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-input {
        padding: 11px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .reset-button {
        padding: 12px 18px;
        font-size: 15px;
        margin-bottom: 16px;
    }

    .return-login {
        margin-top: 16px;
    }

    .return-login a {
        font-size: 13px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 12px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .alert-close {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }
}

/* Very Small Devices (up to 360px) */
@media (max-width: 360px) {
    .reset-container {
        padding: 25px 15px;
    }

    .logo-img {
        max-width: 160px;
    }

    .reset-header h1 {
        font-size: 18px;
    }

    .reset-description {
        font-size: 12px;
    }

    .form-input {
        padding: 10px;
        font-size: 16px;
    }

    .reset-button {
        padding: 11px 16px;
        font-size: 14px;
    }

    .return-login a {
        font-size: 12px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 15px;
        align-items: flex-start;
    }

    .reset-container {
        padding: 30px 40px;
        margin: 20px auto;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .logo-img {
        max-width: 180px;
    }

    .reset-header {
        margin-bottom: 15px;
    }

    .reset-header h1 {
        font-size: 22px;
    }

    .reset-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .reset-button {
        margin-bottom: 12px;
    }

    .return-login {
        margin-top: 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .form-input {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }

    .reset-button,
    .return-login a {
        min-height: 44px; /* Apple recommended touch target size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .alert-close {
        min-width: 44px;
        min-height: 44px;
    }
}
