:root{
    --bg-main: #08111f;
    --bg-soft: #0c1728;
    --text-main: #ffffff;
    --text-soft: #c6d2dd;
    --accent: #00d9ff;
    --surface: rgba(255,255,255,0.04);
    --line: rgba(255,255,255,0.08);
    --shadow: 0 18px 40px rgba(0,0,0,0.18);
}

html[data-theme="light"]{
    --bg-main: #eef3f9;
    --bg-soft: #ffffff;
    --text-main: #0d1724;
    --text-soft: #415164;
    --accent: #006b9f;
    --surface: rgba(255,255,255,0.88);
    --line: rgba(13,23,36,0.12);
    --shadow: 0 18px 40px rgba(13,23,36,0.08);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    min-height: 100vh;
    background: radial-gradient(circle at 0% 0%, rgba(0,217,255,0.12), transparent 30%), var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    transition: background 220ms ease, color 220ms ease;
}

html{
    scroll-behavior: smooth;
}

/* CONTAINER */

.container{
    display: flex;
    min-height: 100vh;
}

/* LEFT PANEL */

.left-panel{
    flex: 1;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0,217,255,0.15),
        rgba(8,17,31,1)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

html[data-theme="light"] .left-panel{
    background: linear-gradient(135deg, rgba(0,107,159,0.12), var(--bg-soft));
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at top left,
            rgba(0,217,255,0.2),
            transparent 40%
        );
}

html[data-theme="light"] .overlay{
    background:
        radial-gradient(
            circle at top left,
            rgba(0,107,159,0.16),
            transparent 40%
        );
}

.content{
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.brand-lockup{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.brand-logo{
    width: min(100%, 360px);
    max-width: 360px;
    height: auto;
    object-fit: contain;
    display: block;
}

.subtitle{
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 30px;
}

.description{
    line-height: 1.7;
    color: var(--text-soft);
    margin-bottom: 40px;
}

/* INFO BOXES */

.info-boxes{
    display: flex;
    gap: 20px;
}

.info-box{
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.info-box h3{
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* RIGHT PANEL */

.right-panel{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px;
    gap: 12px;
}

.theme-row{
    width: min(100%, 450px);
    display: flex;
    justify-content: flex-end;
}

.theme-toggle{
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}

.theme-toggle:hover{
    color: var(--accent);
    border-color: var(--accent);
}

/* LOGIN CARD */

.login-card{
    width: 100%;
    max-width: 450px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 34px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.login-card h2{
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-text{
    color: var(--text-soft);
    margin-bottom: 24px;
    line-height: 1.7;
}

.error-box{
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,122,89,0.35);
    background: rgba(255,122,89,0.12);
    color: #ffd7cc;
    line-height: 1.5;
}

.success-box{
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(110,231,183,0.35);
    background: rgba(110,231,183,0.12);
    color: #d7fff0;
    line-height: 1.5;
}

.reset-link-box{
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    overflow-wrap: anywhere;
}

.reset-link-box p{
    color: var(--text-soft);
    margin-bottom: 8px;
}

.reset-link-box a{
    color: var(--accent);
    word-break: break-all;
}

/* INPUTS */

.input-group{
    margin-bottom: 18px;
}

.input-group label{
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
}

.input-group input{
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
}

.input-group input:focus{
    border-color: #00d9ff;
    box-shadow: 0 0 15px rgba(0,217,255,0.2);
}

/* BUTTON */

.login-btn{
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: #08111f;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,217,255,0.2);
}

/* LINKS */

.extra-links{
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.extra-links a{
    color: var(--text-soft);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.extra-links a:hover{
    color: #00d9ff;
}

/* RESPONSIVE */

@media(max-width: 950px){

    .container{
        flex-direction: column;
    }

    .left-panel{
        display: none;
    }

    .right-panel{
        width: 100%;
        padding: 24px;
    }

    .theme-row,
    .login-card{
        width: 100%;
        max-width: 100%;
    }

    .login-card{
        padding: 24px;
    }

    .brand-lockup{
        justify-content: center;
    }

    body{
        overflow-y: auto;
    }

}

@media(max-width: 560px){

    .right-panel{
        padding: 16px;
    }

    .theme-row{
        justify-content: stretch;
    }

    .theme-toggle{
        width: 100%;
    }

    .login-card{
        padding: 20px;
        border-radius: 18px;
    }

    .login-card h2{
        font-size: 1.7rem;
    }

    .input-group input{
        padding: 14px;
    }

    .login-btn{
        padding: 14px;
    }

    .extra-links{
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}
