:root {
    --bg-dark: #021722;
    --panel-dark: rgba(13, 27, 40, 0.78);
    --panel-soft: rgba(18, 34, 48, 0.84);
    --panel-input: rgba(18, 29, 39, 0.72);
    --panel-border: rgba(144, 175, 197, 0.18);
    --text-main: #edf5ff;
    --text-soft: rgba(224, 236, 247, 0.75);
    --text-muted: rgba(202, 217, 230, 0.65);
    --primary: #13b7f4;
    --primary-strong: #0ca8de;
    --accent: #4ccaf0;
    --shadow: rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    background: #020d15;
    color: var(--text-main);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(2, 15, 22, 0.6), rgba(2, 15, 22, 0.65)),
        var(--login-bg, url('../assets/images/vicadabg.jpg')) center center / cover no-repeat fixed;
}

.page-shell {
    width: min(1280px, calc(100vw - 40px));
    min-height: min(760px, calc(100vh - 40px));
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: rgba(1, 13, 20, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(143, 178, 204, 0.08);
}

.hero {
    position: absolute;
    inset: 0;
    background: transparent;
}

.content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 42px 34px 34px 52px;
}

.brand {
    width: min(44%, 560px);
    padding-left: 18px;
    margin-top: 18px;
}

.vicada-logo {
    display: block;
    width: 180px;
    height: auto;
    margin-bottom: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
}

.brand-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(20, 214, 255, 0.14);
    border: 1px solid rgba(90, 192, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 18px rgba(20, 214, 255, 0.10);
    margin-bottom: 18px;
}

.brand-badge::before {
    content: "◧";
    font-size: 22px;
    color: var(--primary);
    transform: rotate(45deg);
    display: block;
}

h1 {
    font-size: clamp(2.1rem, 2.3vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0 0 18px;
    max-width: 420px;
    color: rgba(235, 244, 251, 0.98);
}

.subtext {
    margin: 0;
    max-width: 440px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(220, 230, 238, 0.73);
}

.login-box {
    width: 390px;
    min-height: 300px;
    background: rgba(18, 35, 50, 0.70);
    border: 1px solid rgba(150, 172, 188, 0.12);
    border-radius: 20px;
    padding: 26px 24px 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.login-box h2 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 1.7vw, 2.3rem);
    letter-spacing: -0.04em;
    color: rgba(237, 245, 255, 0.97);
}

.welcome {
    margin: 0 0 22px;
    color: rgba(214, 227, 237, 0.72);
    font-size: 0.97rem;
}

.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(153, 172, 187, 0.18);
    background: rgba(10, 26, 36, 0.5);
    color: rgba(228, 238, 246, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.social-btn .icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 18px;
    color: rgba(196, 210, 223, 0.42);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(189, 205, 218, 0.18);
}

.alert {
    margin: 0 0 18px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.alert--error {
    color: #ffb3ba;
    background: rgba(255, 77, 94, 0.12);
    border: 1px solid rgba(255, 77, 94, 0.32);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: rgba(208, 221, 234, 0.8);
    letter-spacing: 0.01em;
}

.input-wrap {
    position: relative;
}

.input-wrap .email-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(171, 192, 210, 0.75);
    font-size: 0.8rem;
    pointer-events: none;
}

.input-wrap input.has-suffix {
    padding-right: 140px;
}

.input-wrap .mini-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(171, 192, 210, 0.8);
    font-size: 0.82rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    background: rgba(9, 25, 35, 0.72);
    border: 1px solid rgba(150, 170, 188, 0.14);
    color: var(--text-main);
    padding: 0 14px 0 36px;
    outline: none;
    font-size: 0.95rem;
}

input::placeholder {
    color: rgba(198, 214, 227, 0.42);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 18px;
    font-size: 0.78rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(195, 211, 224, 0.75);
}

.checkbox input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.row a {
    color: rgba(95, 192, 233, 0.92);
    text-decoration: none;
    font-weight: 500;
}

.primary-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    color: #031b2a;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 22px rgba(19, 183, 244, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.footer-note {
    margin-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(194, 214, 228, 0.7);
}

.footer-note a {
    color: rgba(88, 192, 235, 0.9);
    text-decoration: none;
}

@media (max-width: 980px) {
    .page-shell {
        width: min(760px, calc(100vw - 22px));
        height: auto;
    }

    .content {
        flex-direction: column;
        justify-content: center;
        padding: 30px 24px 26px;
        gap: 24px;
    }

    .brand {
        width: 100%;
        text-align: left;
        margin-top: 0;
    }

    .login-box {
        width: min(100%, 420px);
    }
}
