/* ============================================
   AUTH WRAPPER - Modern Glass Design
   ============================================ */
.mdt-auth-wrapper {
    display: flex;
    min-height: 80vh;
    background: #f0f4ff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 127, 224, 0.15);
    margin: 20px auto;
    max-width: 1200px;
}

/* ============================================
   LEFT PANEL - Gradient with Animation
   ============================================ */
.mdt-auth-panel-left {
    flex: 1 1 50%;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6b 50%, #1a7fe0 100%);
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mdt-auth-panel-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 176, 32, 0.1) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.mdt-auth-brand {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.mdt-auth-brand-accent {
    color: #ffb020;
    background: rgba(255, 176, 32, 0.15);
    padding: 2px 12px;
    border-radius: 6px;
}

.mdt-auth-panel-left h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.mdt-auth-panel-left p {
    opacity: 0.85;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1.6;
}

.mdt-auth-feature {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding-left: 28px;
    border-left: 3px solid #ffb020;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.mdt-auth-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(6px);
}

.mdt-auth-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: #fff;
}

.mdt-auth-feature p {
    opacity: 0.8;
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RIGHT PANEL - Clean Card Design
   ============================================ */
.mdt-auth-panel-right {
    flex: 1 1 50%;
    padding: 60px 50px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.mdt-auth-panel-right h2 {
    font-size: 28px;
    margin-bottom: 6px;
    color: #0a1628;
    font-weight: 700;
}

.mdt-auth-subtitle {
    color: #667085;
    margin-bottom: 28px;
    font-size: 15px;
}

/* ============================================
   FORM ELEMENTS - Modern & Clean
   ============================================ */
.mdt-form-row {
    margin-bottom: 20px;
}

.mdt-form-row label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    color: #344054;
}

.mdt-form-row input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e4e7ec;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
    color: #0a1628;
}

.mdt-form-row input:focus {
    border-color: #1a7fe0;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 127, 224, 0.1);
}

.mdt-form-row input::placeholder {
    color: #98a2b3;
}

.mdt-field-hint {
    font-size: 12px;
    color: #98a2b3;
    margin-top: 4px;
    display: block;
}

/* ============================================
   PASSWORD TOGGLE
   ============================================ */
.mdt-password-wrap {
    position: relative;
}

.mdt-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 12px;
    color: #98a2b3;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.mdt-password-toggle:hover {
    color: #1a7fe0;
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */
.mdt-auth-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #1a7fe0 0%, #1565b8 100%);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(26, 127, 224, 0.3);
}

.mdt-auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 127, 224, 0.4);
}

.mdt-auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.mdt-auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   DIVIDER
   ============================================ */
.mdt-auth-divider {
    text-align: center;
    color: #98a2b3;
    font-size: 12px;
    margin: 24px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.mdt-auth-divider::before,
.mdt-auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e4e7ec;
}

.mdt-auth-divider::before {
    left: 0;
}

.mdt-auth-divider::after {
    right: 0;
}

.mdt-auth-divider span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

/* ============================================
   GOOGLE BUTTON
   ============================================ */
#mdt-google-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

#mdt-google-btn .gsi-material-button {
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ============================================
   SWITCH LINKS
   ============================================ */
.mdt-auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #667085;
}

.mdt-auth-switch a {
    color: #1a7fe0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mdt-auth-switch a:hover {
    color: #1565b8;
    text-decoration: underline;
}

.mdt-link-btn {
    background: none;
    border: none;
    color: #1a7fe0;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.mdt-link-btn:hover:not(:disabled) {
    color: #1565b8;
    text-decoration: underline;
}

.mdt-link-btn:disabled {
    color: #98a2b3;
    cursor: not-allowed;
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */
.mdt-form-error {
    background: #fef3f2;
    border: 1px solid #fda29b;
    color: #b42318;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.mdt-form-success {
    background: #ecfdf3;
    border: 1px solid #6ce9a6;
    color: #067647;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================
   OTP INPUT
   ============================================ */
#mdt-otp-code,
#mdt-login-otp-code,
#mdt-fp-code {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 700;
    padding: 14px !important;
}

/* ============================================
   LOGIN ROW (Remember me + Forgot password)
   ============================================ */
.mdt-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.mdt-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #344054;
}

.mdt-checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a7fe0;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .mdt-auth-wrapper {
        flex-direction: column;
        border-radius: 12px;
        margin: 12px;
    }
    
    .mdt-auth-panel-left {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .mdt-auth-panel-left h1 {
        font-size: 28px;
    }
    
    .mdt-auth-panel-right {
        padding: 40px 28px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .mdt-auth-panel-left {
        padding: 30px 20px;
        min-height: 240px;
    }
    
    .mdt-auth-panel-left h1 {
        font-size: 22px;
    }
    
    .mdt-auth-panel-right {
        padding: 30px 20px;
    }
    
    .mdt-auth-panel-right h2 {
        font-size: 22px;
    }
    
    .mdt-login-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}