:root {
    --bg: 255 255 255;
    --fg: 17 24 39;
    --muted: 107 114 128;
    --primary: 99 102 241; /* indigo-500 */
    --primary-600: 79 70 229; /* indigo-600 */
    --ring: 59 130 246; /* blue-500 */
    --card: 255 255 255 / 0.75;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.20);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: 2 6 23;       /* slate-950 */
        --fg: 241 245 249;  /* slate-100 */
        --muted: 148 163 184; /* slate-400 */
        --card: 15 23 42 / 0.6; /* slate-900 */
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: rgb(var(--fg));
    background: radial-gradient(1200px 800px at 10% 10%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(1200px 800px at 90% 90%, rgba(59,130,246,.25), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.9)),
    rgb(var(--bg));
    display: grid;
    place-items: center;
    overflow: auto;
}

.container {
    width: 100%;
    max-width: 1120px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 900px) {
    .container { grid-template-columns: 1.1fr .9fr; }
}

.hero {
    position: relative;
    border-radius: 1rem;
    padding: 36px;
    min-height: 420px;
    /*background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(45, 104, 202, 0.18)) border-box;*/
    overflow: hidden;
    display: grid;
    align-content: center;
    backdrop-filter: blur(2px);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 40vmin;
    height: 60vmin;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), transparent 55%);
    filter: blur(40px);
    opacity: .5;
    z-index: -1;
}

.hero::after {
    inset: auto auto -35% -15%;
    background: radial-gradient(circle at 70% 70%, rgba(255,255,255,.35), transparent 55%);
}

.brand {
    display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.brand .logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--ring)));
    display: grid; place-items: center; color: white; font-weight: 800;
    box-shadow: 0 6px 18px rgba(99,102,241,.45);
}
.brand span { font-size: 22px; font-weight: 700; letter-spacing: .3px; }

.hero h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; margin: 10px 0 14px; }
.hero p { color: rgb(var(--muted)); max-width: 60ch; font-size: clamp(14px, 1.6vw, 16px); }

.card {
    background: rgba(var(--card));
    border: 1px solid rgba(100,116,139,.15);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px) saturate(140%);
}

.card header { display:flex; justify-content:space-between; align-items:center; margin-bottom: 18px; }
.card h2 { margin:0; font-size: 22px; }
.card small { color: rgb(var(--muted)); }

form { display:grid; gap: 14px; }

.field {
    position: relative;
}
.input {
    width: 100%;
    padding: 14px 44px 14px 14px;
    border-radius: 8px;
    border: 1px solid rgba(100,116,139,.35);
    background: rgba(255,255,255,.75);
    color: inherit;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
@media (prefers-color-scheme: dark) {
    .input { background: rgba(15, 23, 42, .55); }
}
.input:focus {
    border-color: rgb(var(--ring));
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
    background: rgba(255,255,255,.9);
}

.label {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: rgb(var(--muted)); pointer-events: none; transition: all .15s ease;
    padding: 0 6px; background: transparent; border-radius: 8px;
}
.input:focus + .label, .input:not(:placeholder-shown) + .label {
    top: -12px; font-size: 12px; background: rgba(255,255,255,.75); color: rgb(var(--primary-600));
}
@media (prefers-color-scheme: dark) {
    .input:focus + .label, .input:not(:placeholder-shown) + .label { background: rgba(2,6,23,.9); }
}

.toggle-eye {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: none; background: none; cursor: pointer; padding: 6px; border-radius: 10px;
}
.toggle-eye:focus-visible { outline: 2px solid rgb(var(--ring)); outline-offset: 2px; }

.row { display:flex; flex-wrap: wrap; align-items:center; justify-content: space-between; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; justify-content:center; gap:10px;
    padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(99,102,241,.2);
    background: linear-gradient(180deg, rgb(var(--primary)), rgb(var(--primary-600)));
    color: white; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: transform .04s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 10px 20px rgba(99,102,241,.35);
}
.btn:hover {
    color: rgb(var(--primary-600));
    font-weight: 800; cursor: pointer; text-decoration: none;
    background: white;
    border-color: var(--primary-600);
}
.btn:active { transform: translateY(1px); }
.btn.secondary {
    background: rgba(255,255,255,.8); color: rgb(var(--fg));
    border: 1px solid rgba(100,116,139,.35); box-shadow: none;
}

.socials { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.socials .btn svg { width: 18px; height: 18px; }

.meta { display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.meta a { color: rgb(var(--primary-600)); text-decoration: none; font-weight: 600; }

.divider { display:flex; align-items:center; gap: 10px; margin: 8px 0; color: rgb(var(--muted)); font-size: 14px; }
.divider::before, .divider::after { content:""; height:1px; flex:1; background: rgba(100,116,139,.35); }

footer { text-align:center; color: rgb(var(--muted)); font-size: 13px; margin-top: 2px; }
.benasoftlogin-page, .benasoftregister-page {
    -ms-flex-align: center;
    align-items: center;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: row;
    flex-direction: row;
    height: 100vh;
    -ms-flex-pack: center;
    justify-content: center
}