/**
 * AdvocateBook.in — Marriage Register Authentication Stylesheet
 * Scoped styling for /marriage-register/login.php, forgot-password.php, reset-password.php
 */

:root {
    --mr-auth-navy: #070F26;
    --mr-auth-navy-card: #0F172A;
    --mr-auth-royal: #2563EB;
    --mr-auth-royal-dark: #1D4ED8;
    --mr-auth-gold: #D97706;
    --mr-auth-gold-light: #FEF3C7;
    --mr-auth-emerald: #059669;
    --mr-auth-emerald-light: #ECFDF5;
    --mr-auth-border: #E2E8F0;
    --mr-auth-text: #0F172A;
    --mr-auth-muted: #64748B;
    --mr-auth-radius: 20px;
    --mr-auth-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

.mr-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #070F26 0%, #0D1B3E 45%, #0A2540 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    color: var(--mr-auth-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Background Subtle Grid & Glowing Orbs */
.mr-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.mr-auth-orb-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
}

.mr-auth-orb-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.2) 0%, rgba(5, 150, 105, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* Top Header Bar */
.mr-auth-nav {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.mr-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mr-auth-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mr-auth-brand-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F8FAFC;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.mr-auth-back-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.mr-auth-back-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-2px);
}

/* Main Auth Container */
.mr-auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
    position: relative;
    z-index: 10;
}

.mr-auth-card {
    background: #FFFFFF;
    border: 1px solid var(--mr-auth-border);
    border-radius: var(--mr-auth-radius);
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--mr-auth-shadow);
    position: relative;
    overflow: hidden;
}

.mr-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #2563EB 0%, #059669 50%, #D97706 100%);
}

.mr-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 1rem;
}

.mr-auth-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #0F172A;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.mr-auth-subtitle {
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

/* Form Controls */
.mr-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.mr-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.4rem;
}

.mr-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.mr-input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 19px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.mr-form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
    font-family: 'Inter', inherit;
    color: #0F172A;
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mr-form-control:focus {
    background: #FFFFFF;
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.mr-form-control:focus + .mr-input-icon,
.mr-input-wrapper:focus-within .mr-input-icon {
    color: #2563EB;
}

.mr-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.mr-password-toggle:hover {
    color: #0F172A;
}

/* Submit Button */
.btn-mr-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #2563EB 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-mr-submit:hover {
    background: linear-gradient(135deg, #1E293B 0%, #1D4ED8 50%, #1E40AF 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    color: #FFFFFF;
}

.btn-mr-submit:active {
    transform: translateY(1px);
}

/* Auth Alerts */
.mr-auth-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}

.mr-auth-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.mr-auth-alert-warning {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.mr-auth-alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* Card Links */
.mr-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.mr-auth-link {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mr-auth-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.mr-auth-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0 1.25rem;
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mr-auth-divider::before,
.mr-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.mr-auth-divider span {
    padding: 0 12px;
}

/* Register Action Area */
.mr-register-card-action {
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    margin-top: 1.25rem;
}

.mr-register-card-action p {
    font-size: 0.86rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.btn-mr-register-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #059669;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-mr-register-link:hover {
    color: #047857;
    transform: translateX(2px);
}

/* Trust / Feature Points */
.mr-auth-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 1.5rem;
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 500;
}

.mr-auth-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer Bottom Note */
.mr-auth-footer-note {
    text-align: center;
    color: #64748B;
    font-size: 0.78rem;
    margin-top: 1.5rem;
}

.mr-auth-footer-note a {
    color: #94A3B8;
    text-decoration: none;
}

.mr-auth-footer-note a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* OTP Input Boxes for Forgot Password */
.mr-otp-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 1.5rem 0;
}

.mr-otp-input {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    transition: all 0.2s ease;
}

.mr-otp-input:focus {
    background: #FFFFFF;
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .mr-auth-nav {
        padding: 1rem 1.25rem;
    }
    .mr-auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }
    .mr-auth-title {
        font-size: 1.45rem;
    }
    .mr-auth-brand img {
        height: 32px;
    }
    .mr-auth-brand-badge {
        display: none;
    }
    .mr-otp-input {
        width: 42px;
        height: 48px;
        font-size: 1.2rem;
    }
}
