﻿/* wwwroot/css/login.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* REPLACED 'body' WITH A WRAPPER CLASS */
.auth-page-wrapper {
    /* 100vh minus the height of the header and padding to center it perfectly */
    /* min-height: calc(100vh - 120px); */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

    /* Futuristic Background Glowing Accents */
    .auth-page-wrapper::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
        top: -100px;
        left: -100px;
        z-index: 0;
        border-radius: 50%;
        pointer-events: none;
    }

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Left Side: Advanced AI Visual Panel */
.ai-banner-side {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1000&auto=format&fit=crop') center/cover;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

    .ai-banner-side::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(6, 9, 19, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    }

.ai-banner-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
}

    .brand-logo i {
        background: linear-gradient(135deg, #38bdf8, #2563eb);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 24px;
    }

.ai-banner-content h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}

.ai-banner-content p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.ai-features-list {
    position: relative;
    z-index: 2;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

    .ai-features-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: #cbd5e1;
        font-weight: 500;
    }

        .ai-features-list li i {
            color: #38bdf8;
            font-size: 14px;
        }

/* Right Side: Form Panel */
.form-side {
    padding: 40px;
    /* Use the theme variable so it respects Light/Dark Mode */
    background: var(--bg-card, rgba(255, 255, 255, 0.01));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 6px;
}

.form-header p {
    color: var(--text-secondary, #94a3b8);
    font-size: 13px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 5px;
        color: var(--text-secondary, #cbd5e1);
        letter-spacing: 0.3px;
    }

    .form-group input:not([type="checkbox"]) {
        width: 100%;
        padding: 11px 14px;
        background: rgba(15, 23, 42, 0.1);
        border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
        border-radius: 8px;
        font-size: 13px;
        color: var(--text-primary, #fff);
        outline: none;
        transition: all 0.3s ease;
    }

        .form-group input:not([type="checkbox"])::placeholder {
            color: var(--text-muted, #64748b);
        }

        .form-group input:not([type="checkbox"]):focus {
            border-color: #38bdf8;
            box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
        }

/* Checkbox specific styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

    .form-check input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #38bdf8;
        cursor: pointer;
    }

    .form-check label {
        font-size: 12px;
        color: var(--text-secondary, #cbd5e1);
        cursor: pointer;
        margin: 0;
    }

/* ASP.NET Core Validation Styling */
/* 1. Only apply the red text/margin to the error span underneath the input */
span.text-danger {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

/* 2. When the input itself has an error, just make the border red, keep text white */
input.text-danger {
    border-color: #ef4444 !important;
    color: var(--text-primary, #fff) !important;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .validation-summary-errors li {
        color: #ef4444;
        font-size: 12px;
    }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin-top: 10px;
}

    .btn-primary:hover {
        opacity: 0.95;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        background: linear-gradient(135deg, #475569 0%, #64748b 100%); /* Turns grayish/muted when loading */
    }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
}

    .auth-switch a {
        color: #38bdf8;
        text-decoration: none;
        font-weight: 600;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

/* Responsive layout adjustment */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .ai-banner-side {
        display: none;
    }
}

.otp-input {
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    text-align: center;
    font-family: monospace;
    text-indent: 0.5em; /* <--- ADD THIS: perfectly centers the text by offsetting the letter-spacing */
    font-weight: 700; /* <--- Optional: makes the numbers bolder and easier to read */
}
/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

    /* Add padding to the right so typing doesn't overlap the eye icon */
    .password-wrapper input {
        padding-right: 40px !important;
    }

/* Password Visibility Toggle Wrapper */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

    /* Add padding to the right so typing doesn't overlap the eye icon */
    .password-wrapper input {
        padding-right: 40px !important;
    }

    /* Ye CSS ab har us icon (i) par apply hogi jo wrapper ke andar hai */
    .password-wrapper i {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: var(--text-muted, #64748b);
        transition: color 0.3s ease;
        font-size: 14px;
        z-index: 10;
    }

        .password-wrapper i:hover {
            color: #38bdf8; /* Matches your brand color */
        }

  