/* ============================================
   MNLA MobileWeb - Authentication Pages Styles
   Consolidated styles for login, register, reset password, and change password pages
   ============================================ */

/* ============================================
   AUTH CONTAINER & CARD
   ============================================ */
.login-container,
.reset-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.login-card,
.reset-card {
    background: rgba(26, 32, 44, 0.95);
    border-radius: 24px;
    padding: 48px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button-container {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.btn-back:hover {
    color: #10b981;
}

.btn-back i {
    font-size: 14px;
}

/* ============================================
   TITLES & SUBTITLES
   ============================================ */
.login-title,
.reset-title,
.register-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
    text-align: center;
}

.register-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.reset-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ============================================
   FORMS
   ============================================ */
.login-form,
.reset-form {
    width: 100%;
}

.forgot-password {
    text-align: left;
    margin: 12px 0 30px 0;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #10b981;
}

/* Textarea specific */
.textarea-input {
    min-height: 80px;
    resize: vertical;
    padding-top: 12px !important;
    line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-signin,
.btn-reset {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-reset {
    margin-top: 10px;
}

.btn-signin:hover,
.btn-reset:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-signin:active,
.btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   LINKS
   ============================================ */
.signup-link {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.link-signup {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.3s ease;
}

.link-signup:hover {
    color: #34d399;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.link-back {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-back:hover {
    color: #10b981;
}

/* ============================================
   VALIDATION
   ============================================ */
#passwordMatchError {
    font-size: 12px;
    margin-top: 4px;
}

/* ============================================
   CONFIRMATION PAGE
   ============================================ */
.confirmation-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
}

.confirmation-icon i {
    font-size: 60px;
    color: #10b981;
}

.confirmation-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.confirmation-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .login-container,
    .reset-container {
        padding: 20px;
        max-width: 100%;
    }
    
    .login-card,
    .reset-card {
        padding: 40px 32px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 32px;
    }

    .register-title {
        font-size: 28px;
    }

    .reset-title {
        font-size: 28px;
    }
    
    /* Larger logo on mobile */
    .logo-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Bigger inputs on mobile */
    .form-input {
        padding: 16px 18px !important;
        font-size: 16px !important;
    }
    
    .input-wrapper {
        border-radius: 14px !important;
    }
    
    .input-icon {
        padding-left: 18px !important;
        font-size: 20px !important;
    }
    
    /* Larger buttons */
    .btn-signin,
    .btn-reset {
        padding: 20px !important;
        font-size: 18px !important;
        border-radius: 16px !important;
    }
    
    /* Better spacing */
    .form-group {
        margin-bottom: 20px !important;
    }
    
    .forgot-password {
        margin: 16px 0 32px 0 !important;
    }
    
    .forgot-link {
        font-size: 15px !important;
    }
    
    .signup-link {
        margin-top: 32px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .login-card,
    .reset-card {
        padding: 36px 28px;
    }

    .login-card {
        max-height: 95vh;
        max-height: calc(var(--vh, 1vh) * 95);
        overflow-y: auto;
    }

    .login-title {
        font-size: 28px;
    }

    .register-title {
        font-size: 24px;
    }

    .reset-title {
        font-size: 26px;
    }

    .reset-subtitle {
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 18px;
    }
}

/* Fullscreen / Standalone mode fixes */
@media (display-mode: standalone), (display-mode: fullscreen) {
    .login-container,
    .reset-container {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding-top: 0;
        padding-bottom: max(env(safe-area-inset-bottom), 20px);
    }
}
