/* Shared layout for login, register, forgot password pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-form-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #FF8C00 0%, #FFD700 25%, #20B2AA 75%, #008B8B 100%);
    color: #333333;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.auth-form-page::before,
body.auth-form-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
}

body.auth-form-page::before {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: rgba(211, 211, 211, 0.3);
    animation: authFloat1 15s ease-in-out infinite;
}

body.auth-form-page::after {
    bottom: 10%;
    right: 15%;
    width: 200px;
    height: 200px;
    background: rgba(211, 211, 211, 0.2);
    animation: authFloat2 20s ease-in-out infinite;
}

@keyframes authFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -30px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes authFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.2); }
}

.auth-form-page .main-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.auth-form-page .nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-form-page .content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-form-page .login-section {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.auth-form-page .left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-form-page .page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FF8C00, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form-page .page-subtitle {
    font-size: 18px;
    color: #666666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-form-page .form-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: authFormSlideIn 0.6s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.auth-form-page .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8C00, #FFD700, #20B2AA);
}

@keyframes authFormSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-form-page .form-heading {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.auth-form-page .form-lead {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-form-page .form-group {
    margin-bottom: 24px;
}

.auth-form-page .form-label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    color: #333333;
}

.auth-form-page .form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    width: 100%;
    height: 56px;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-form-page .form-input:focus {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1), 0 8px 16px rgba(255, 140, 0, 0.2);
    outline: none;
    transform: translateY(-2px);
}

.auth-form-page .password-container {
    position: relative;
}

.auth-form-page .password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #666666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.auth-form-page .password-toggle:hover {
    color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
}

.auth-form-page .submit-button,
.auth-form-page .resend-button {
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    color: white;
    width: 100%;
    height: 56px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(255, 140, 0, 0.3);
    margin-bottom: 16px;
}

.auth-form-page .resend-button {
    background: linear-gradient(135deg, #20B2AA, #008B8B);
    box-shadow: 0 8px 16px rgba(32, 178, 170, 0.25);
}

.auth-form-page .submit-button:hover,
.auth-form-page .resend-button:hover {
    transform: translateY(-2px);
}

.auth-form-page .form-footer-links {
    text-align: center;
}

.auth-form-page .back-link {
    font-size: 14px;
    color: #20B2AA;
    text-decoration: none;
    font-weight: 600;
}

.auth-form-page .back-link:hover {
    color: #008B8B;
    text-decoration: underline;
}

.auth-form-page .error-message,
.auth-form-page .success-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.auth-form-page .error-message {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    border: 2px solid rgba(220, 38, 38, 0.3);
    color: #DC2626;
}

.auth-form-page .success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.auth-form-page .features-section {
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-form-page .features-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

.auth-form-page .features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-page .feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.auth-form-page .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(32, 178, 170, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.auth-form-page .feature-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #333;
}

.auth-form-page .feature-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Forgot password — OTP step */
.auth-form-page .otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-form-page .otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.auth-form-page .otp-input:focus {
    border-color: #FF8C00;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
}

.auth-form-page .timer {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.auth-form-page .password-requirements {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.auth-form-page .requirement.met {
    color: #10B981;
}

@media (max-width: 1024px) {
    .auth-form-page .login-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .auth-form-page .left-content {
        align-items: center;
        order: 2;
    }

    .auth-form-page .form-container {
        order: 1;
        margin: 0 auto;
    }

    .auth-form-page .page-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .auth-form-page .content-wrapper {
        padding: 20px 15px;
    }

    .auth-form-page .form-container,
    .auth-form-page .features-section {
        padding: 30px 24px;
    }

    .auth-form-page .page-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .auth-form-page .otp-input {
        width: 42px;
        height: 50px;
        font-size: 18px;
    }
}
