/* ============================================================
   Koushik UROCARE - ADMIN LOGIN
   Modern medical admin login design
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1167d8;
    --primary-dark: #084da8;
    --primary-light: #eaf3ff;
    --navy: #073b83;
    --text: #162033;
    --muted: #6f7b8d;
    --border: #dce5f0;
    --white: #ffffff;
    --danger: #d93025;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f5f8fc;
    color: var(--text);
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}


/* ============================================================
   LEFT BRAND PANEL
   ============================================================ */

.brand-panel {
    width: 45%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, #073b83 0%, #0759b9 48%, #0875e8 100%);
    color: white;
    border-radius: 0 48% 48% 0 / 0 14% 86% 0;
}

.brand-panel::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 70px solid rgba(255,255,255,.08);
    border-radius: 50%;
    left: -310px;
    bottom: -230px;
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    right: -190px;
    top: -130px;
    background: rgba(255,255,255,.06);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 30%),
        linear-gradient(180deg, transparent 55%, rgba(0,0,0,.13));
}

.brand-content {
    position: relative;
    z-index: 2;
    width: min(82%, 550px);
    min-height: 100vh;
    padding: 65px 55px 35px;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kidney-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.20);
    backdrop-filter: blur(8px);
}

.kidney-logo i {
    font-size: 29px;
    color: #ff68aa;
}

.brand-name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    margin-top: 7px;
    opacity: .9;
}

.welcome-section {
    margin-top: 78px;
    max-width: 430px;
}

.welcome-small {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    margin-bottom: 18px;
}

.welcome-section h1 {
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 18px;
}

.welcome-section p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.86);
}

.feature-list {
    margin-top: 55px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 17px;
}

.feature-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.12);
}

.feature-icon i {
    font-size: 22px;
}

.feature-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 12px;
    color: rgba(255,255,255,.68);
}

.brand-bottom {
    margin-top: auto;
    padding-top: 35px;
    font-size: 11px;
    color: rgba(255,255,255,.60);
}

.brand-bottom i {
    margin-right: 5px;
}


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

.login-panel {
    flex: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 7%;
    background:
        radial-gradient(circle at 85% 15%, rgba(17,103,216,.06), transparent 28%),
        #f8fafc;
}

.login-container {
    width: 100%;
    max-width: 570px;
}

.login-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(220,229,240,.9);
    border-radius: 26px;
    padding: 48px 48px 38px;
    box-shadow:
        0 25px 70px rgba(27, 57, 95, .11),
        0 5px 20px rgba(27, 57, 95, .05);
}

.login-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f5f9ff, #edf5ff);
    border: 1px solid #dce9fb;
    box-shadow: 0 10px 30px rgba(17,103,216,.08);
}

.login-icon i {
    font-size: 34px;
    color: var(--primary);
}

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

.login-heading h2 {
    font-size: 31px;
    font-weight: 800;
    color: #101828;
}

.heading-line {
    width: 48px;
    height: 3px;
    border-radius: 5px;
    margin: 15px auto 11px;
    background: var(--primary);
}

.login-heading p {
    color: var(--muted);
    font-size: 13px;
}


/* Error */
.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff2f1;
    border: 1px solid #ffd4d0;
    color: var(--danger);
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 13px;
}


/* Form */
.form-group {
    margin-bottom: 23px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
    color: #253044;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b98aa;
    font-size: 18px;
    pointer-events: none;
    transition: .2s;
}

.input-wrapper input {
    width: 100%;
    height: 55px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #f8fafd;
    color: #172033;
    padding: 0 48px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: .25s ease;
}

.input-wrapper input::placeholder {
    color: #a3adba;
}

.input-wrapper input:hover {
    border-color: #c5d5e9;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17,103,216,.10);
}

.input-wrapper:focus-within > i {
    color: var(--primary);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7f8b9c;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}


/* Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 28px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #586579;
    font-size: 13px;
}

.remember-box input {
    position: absolute;
    opacity: 0;
}

.custom-check {
    width: 19px;
    height: 19px;
    border-radius: 5px;
    border: 1.5px solid #c6d2e1;
    position: relative;
    transition: .2s;
}

.remember-box input:checked + .custom-check {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-box input:checked + .custom-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}


/* Login button */
.login-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1167d8, #0878ef);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(17,103,216,.22);
    transition: .25s ease;
}

.login-button i {
    font-size: 18px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17,103,216,.28);
}

.login-button:active {
    transform: translateY(0);
}


/* Security */
.security-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 25px;
    color: #9aa5b4;
    font-size: 11px;
}

.security-note i {
    color: #5e9be7;
}

.copyright {
    text-align: center;
    color: #8a96a7;
    font-size: 11px;
    margin-top: 24px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .brand-panel {
        width: 40%;
    }

    .brand-content {
        padding: 45px 35px;
        width: 100%;
    }

    .welcome-section {
        margin-top: 55px;
    }

    .login-panel {
        padding: 35px;
    }

    .login-card {
        padding: 40px 35px 32px;
    }
}


@media (max-width: 800px) {

    .login-page {
        display: block;
        overflow: visible;
    }

    .brand-panel {
        width: 100%;
        min-height: auto;
        border-radius: 0 0 45px 45px;
    }

    .brand-content {
        min-height: auto;
        padding: 35px 28px 45px;
    }

    .welcome-section {
        margin-top: 35px;
    }

    .welcome-section h1 {
        font-size: 34px;
    }

    .feature-list {
        margin-top: 32px;
        gap: 15px;
    }

    .feature-item {
        display: none;
    }

    .brand-bottom {
        display: none;
    }

    .login-panel {
        min-height: auto;
        padding: 35px 20px 40px;
    }

    .login-card {
        padding: 35px 24px 30px;
        border-radius: 20px;
    }
}


@media (max-width: 450px) {

    .brand-logo {
        gap: 10px;
    }

    .kidney-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 22px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .login-heading h2 {
        font-size: 26px;
    }

    .login-options {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .login-card {
        padding: 30px 20px 27px;
    }
}
