/* Authentication Pages Styling */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #002a5c 100%);
    padding: 100px 20px 60px;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    font-size: 16px;
    color: #666;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #FF5722;
    margin-left: 3px;
}

.form-group label .optional {
    color: #999;
    font-weight: 400;
    font-size: 13px;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 124, 0.1);
}

.form-control.error {
    border-color: #FF5722;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #FF5722;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
}

.help-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-auth:hover {
    background: #002a5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 74, 124, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    font-size: 15px;
    color: #666;
    margin-bottom: 0;
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 25px;
}

.back-home a {
    color: white;
    font-size: 15px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-home a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-group label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #FF5722;
}

.password-strength-bar.medium {
    width: 66%;
    background: #FFC107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #4CAF50;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-page {
        padding: 80px 15px 40px;
    }

    .auth-box {
        padding: 35px 25px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 30px 20px;
    }

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

    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }

    .btn-auth {
        padding: 14px;
        font-size: 16px;
    }
}
