/*=========================================================
    JANHIT VIVAH SANSTHA / MATRIMONY PLATFORM
    Premium Login Page (Theme Aligned with Site Design System)
==========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --maroon-primary: #7B241C;
    --maroon-dark: #5C1B15;
    --maroon-light: #962D23;
    --maroon-soft: #FDF4F3;

    --orange-primary: #D97706;
    --orange-light: #F59E0B;
    
    --indigo-accent: #4F46E5;
    
    --gold-primary: #D4AF37;
    --gold-light: #F7E7A9;

    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    --border-color: #E2E8F0;
    --input-bg: #F8FAFC;
    --body-bg: #F8FAFC;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.1), 0 10px 25px rgba(123, 36, 28, 0.08);
    --shadow-btn: 0 10px 25px rgba(123, 36, 28, 0.28);
}

body {
    background-color: var(--body-bg);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(123, 36, 28, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(217, 119, 6, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
    background-attachment: fixed;
    font-family: var(--font-main);
    color: var(--text-dark);
    min-height: 100vh;
}

/*==========================================
LOGIN PAGE CONTAINER
==========================================*/

.login-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Ambient Background Blobs */
.login-page::before {
    content: "";
    position: absolute;
    top: 5%;
    left: 5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(123, 36, 28, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.login-page::after {
    content: "";
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/*==========================================
CARD CONTAINER
==========================================*/

.login-card {
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(123, 36, 28, 0.12);
    overflow: hidden;
    animation: fadeSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*==========================================
LEFT BRANDING PANEL (Existing Theme Colors)
==========================================*/

.login-left {
    background-image: 
        linear-gradient(145deg, rgba(92, 27, 21, 0.92) 0%, rgba(123, 36, 28, 0.88) 50%, rgba(217, 119, 6, 0.9) 100%),
        url('../images/matrimony_login_hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.25rem 2.75rem;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 50%);
    pointer-events: none;
}

.left-brand-header {
    position: relative;
    z-index: 2;
    text-align: center;
}

.company-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.04);
}

.company-name {
    height: 70px;
    max-width: 270px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.brand-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.left-brand-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 1rem;
    line-height: 1.25;
}

.left-brand-title span {
    color: #FEE2E2;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.left-brand-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Feature Box Items */
.feature-list {
    position: relative;
    z-index: 2;
    margin: 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.feature-info h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #FFFFFF;
}

.feature-info p {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    line-height: 1.35;
}

/* Trust Stats Pill */
.trust-stats-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.trust-stat {
    text-align: center;
}

.trust-stat-num {
    font-weight: 800;
    font-size: 1.15rem;
    color: #FFFFFF;
    line-height: 1;
}

.trust-stat-lbl {
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/*==========================================
RIGHT LOGIN FORM PANEL
==========================================*/

.login-form-wrapper {
    padding: 3.25rem 3.25rem 2.75rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.form-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-header-subtitle {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
}

/* Form Groups & PADDINGS FOR EMAIL & PASSWORD */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Input Group Container */
.input-group-custom {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    background-color: var(--input-bg);
    transition: all 0.25s ease;
    overflow: hidden;
    padding: 2px 4px;
    width: 100%;
}

.input-group-custom:focus-within {
    border-color: var(--maroon-primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(123, 36, 28, 0.12);
}

/* 1ST ELEMENT: STARTING / LEFT FIELD ICON (Envelope / Lock) */
.input-group-custom .input-prefix-icon,
.login-page .input-group-custom .input-icon {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    order: 1 !important;
    padding: 0 0.4rem 0 1.1rem !important;
    font-size: 1.2rem;
    color: var(--maroon-primary);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.25s ease;
    flex-shrink: 0 !important;
}

.input-group-custom:focus-within .input-prefix-icon,
.login-page .input-group-custom:focus-within .input-icon {
    color: var(--maroon-light);
}

/* 2ND ELEMENT: MIDDLE FORM INPUT FIELD */
.input-group-custom .form-control {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    height: 52px;
    font-size: 0.975rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 0.75rem 0.75rem 0.6rem !important;
    box-shadow: none !important;
}

.input-group-custom .form-control::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Disable native browser password reveal eye button (Edge/IE/Chrome) to prevent double eye icons */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* 3RD ELEMENT: ENDING / RIGHT VIEW PASSWORD EYE TOGGLE BUTTON */
.btn-toggle-pw {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    order: 3 !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-muted);
    padding: 0 1.1rem 0 0.4rem !important;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    z-index: 10;
    user-select: none;
    height: 100%;
}

.btn-toggle-pw:hover,
.btn-toggle-pw:focus {
    color: var(--maroon-primary);
    outline: none;
}

/* Checkbox & Links */
.form-check-input {
    width: 1.15em;
    height: 1.15em;
    border-color: #CBD5E1;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--maroon-primary);
    border-color: var(--maroon-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(123, 36, 28, 0.15);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: var(--maroon-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: var(--orange-primary);
    text-decoration: underline;
}

/* Main Login Button (Existing Maroon Gradient) */
.login-btn {
    height: 54px;
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-dark) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-btn);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--orange-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(123, 36, 28, 0.35);
    color: #FFFFFF;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(123, 36, 28, 0.25);
}

/* Divider */
.divider-wrapper {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider-wrapper::before,
.divider-wrapper::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Secondary Action Button */
.btn-register-outline {
    height: 50px;
    border: 1.5px solid var(--maroon-primary);
    color: var(--maroon-primary);
    background: transparent;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-register-outline:hover {
    background-color: var(--maroon-soft);
    color: var(--maroon-dark);
    border-color: var(--maroon-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(123, 36, 28, 0.12);
}

/* Security Cards Footer */
.security-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}

.security-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.25s ease;
}

.security-pill:hover {
    background: var(--maroon-soft);
    border-color: rgba(123, 36, 28, 0.2);
    transform: translateY(-2px);
}

.security-pill i {
    font-size: 1.25rem;
    color: var(--maroon-primary);
    margin-bottom: 4px;
    display: block;
}

.security-pill span {
    font-size: 0.725rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

.security-pill small {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* Validation Alert */
.alert-custom {
    border-radius: 14px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    font-size: 0.875rem;
    padding: 12px 16px;
    margin-bottom: 1.25rem;
}

/*==========================================
RESPONSIVE LAYOUT BREAKPOINTS
==========================================*/

@media (max-width: 1199.98px) {
    .login-left {
        padding: 2.75rem 2rem;
    }
    
    .login-form-wrapper {
        padding: 2.75rem 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .login-page {
        padding: 1.5rem 0.75rem;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .mobile-brand-banner {
        text-align: center;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-company-logo {
        height: 70px;
        width: auto;
        margin-bottom: 0.5rem;
    }
    
    .mobile-company-name {
        height: 50px;
        max-width: 210px;
    }
    
    .login-form-wrapper {
        padding: 2.25rem 1.75rem;
    }
    
    .form-header-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-wrapper {
        padding: 1.75rem 1.25rem;
    }
    
    .security-footer-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .security-pill {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding: 8px 12px;
    }
    
    .security-pill i {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
    
    .security-pill div {
        display: flex;
        flex-direction: column;
    }
}