/* Authentication Pages Styles - Following Figma Design System */
/* Inter font, colors #D7700D (primary), #365F8E (secondary), 8px spacing */

:root {
    --primary-color: #D7700D;
    --secondary-color: #365F8E;
    --spacing-unit: 8px;
}

.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 2);
    min-height: 400px;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: calc(var(--spacing-unit) * 4);
    background-color: #ffffff;
    border-radius: calc(var(--spacing-unit) * 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.auth-tab {
    flex: 1;
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: -2px;
}

.auth-form {
    margin-top: calc(var(--spacing-unit) * 3);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.form-control {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid #ddd;
    border-radius: calc(var(--spacing-unit) * 0.5);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(54, 95, 142, 0.1);
}

.btn-submit {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: calc(var(--spacing-unit) * 0.5);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2a4a6f;
}

.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: calc(var(--spacing-unit) * 0.5);
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: calc(var(--spacing-unit) * 0.5);
}

.forgot-password {
    text-align: right;
    margin-top: calc(var(--spacing-unit) * 1);
}

.forgot-password a {
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Responsive Design for Auth Pages */

/* Tablets and below */
@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
    }

    .auth-container {
        max-width: 90%;
        padding: calc(var(--spacing-unit) * 3);
    }

    .auth-tab {
        padding: calc(var(--spacing-unit) * 1.5);
        font-size: 15px;
    }

    .form-control {
        padding: calc(var(--spacing-unit) * 1.25);
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        padding: calc(var(--spacing-unit) * 1.25);
        font-size: 15px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .auth-page-wrapper {
        padding: calc(var(--spacing-unit) * 2) 0;
    }

    .auth-container {
        max-width: 100%;
        padding: calc(var(--spacing-unit) * 2);
        border-radius: 0;
        box-shadow: none;
    }

    .auth-tabs {
        margin-bottom: calc(var(--spacing-unit) * 2);
    }

    .auth-tab {
        padding: calc(var(--spacing-unit) * 1);
        font-size: 14px;
    }

    .auth-tab.active {
        border-bottom-width: 2px;
    }

    .auth-form {
        margin-top: calc(var(--spacing-unit) * 2);
    }

    .form-group {
        margin-bottom: calc(var(--spacing-unit) * 1.5);
    }

    .form-control {
        padding: calc(var(--spacing-unit) * 1);
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        padding: calc(var(--spacing-unit) * 1);
        font-size: 14px;
    }

    .error-message {
        font-size: 12px;
    }

    .help-text {
        font-size: 11px;
    }

    .forgot-password a {
        font-size: 13px;
    }
}

/* Auth Card Styles */
.auth-card {
    background: #fff;
    border-radius: 8px;
    padding: calc(var(--spacing-unit) * 4);
}

.auth-card-header {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.auth-card-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 calc(var(--spacing-unit) * 1.5) 0;
}

.auth-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* Form Elements */
.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-size: 14px;
}

.form-label .required {
    color: #d32f2f;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.input-wrapper input {
    padding-left: 40px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.75);
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2a4a6f;
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #e8e8e8;
    color: #333;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Link Styles */
.link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-secondary:hover {
    color: #2a4a6f;
    text-decoration: underline;
}

/* Auth Footer Links */
.auth-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
    padding-top: calc(var(--spacing-unit) * 2);
    border-top: 1px solid #eee;
}

/* Info Box */
.auth-info-box {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 3);
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: calc(var(--spacing-unit) * 3);
}

.auth-info-box > i {
    font-size: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.auth-info-box .info-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
}

.auth-info-box .info-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
    line-height: 1.5;
}

.auth-info-box .info-content p:last-child {
    margin-bottom: 0;
}

.auth-info-box .info-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-info-box .info-content a:hover {
    text-decoration: underline;
}

/* Success Icon for Reset Done */
.success-icon {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Info Content for Reset Done */
.auth-info-content {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.info-section {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 calc(var(--spacing-unit) * 1.5) 0;
}

.info-section h4 i {
    color: var(--secondary-color);
}

/* Steps List */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Info List */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.info-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

/* Responsive adjustments for new styles */
@media (max-width: 480px) {
    .auth-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .auth-card-header h2 {
        font-size: 24px;
    }

    .auth-info-box {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 1);
        padding: calc(var(--spacing-unit) * 2);
    }

    .auth-footer-links {
        gap: calc(var(--spacing-unit) * 1.5);
    }

    .btn-secondary {
        padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 1.5);
        font-size: 13px;
    }
}
