@import url("sems-tokens.css");

*, *::before, *::after { box-sizing: border-box; }

body.login-page {
    background: #07101c;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.login-scene {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    position: relative;
    overflow: hidden;
}

.login-panel {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.login-panel-brand {
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 3rem 1.25rem;
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(99, 102, 241, 0.12), transparent 50%),
        linear-gradient(165deg, #0b2744 0%, #0a1a30 55%, #081525 100%);
    border-right: 1px solid rgba(56, 189, 248, 0.12);
}

.login-panel-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 40% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.login-brand-top { position: relative; z-index: 1; }

.login-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.login-wordmark-icon {
    width: 36px;
    height: 36px;
    color: #7dd3fc;
}

.login-wordmark-icon svg { width: 100%; height: 100%; display: block; }

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin-top: 2.5rem;
}

.login-platform-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.9rem;
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.08);
    margin-bottom: 1.35rem;
}

.login-brand-title {
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.login-brand-text {
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 460px;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.login-features li i { color: #38bdf8; font-size: 1.05rem; }

.login-hero-art {
    position: relative;
    z-index: 1;
    margin: 1.25rem 0 0 auto;
    max-width: 680px;
    width: 100%;
}

.login-hero-art svg { width: 100%; height: auto; display: block; }

.login-panel-form {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem 4.5rem;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(99, 102, 241, 0.12), transparent 50%),
        #070e1a;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    padding: 2.15rem 2rem 1.75rem;
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.login-card-header { text-align: center; margin-bottom: 1.65rem; }

.login-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #38bdf8 0%, #6366f1 55%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.login-card-header h1,
.login-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.login-card-header p,
.login-card-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.login-error,
.login-alert {
    font-size: 0.85rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.login-field,
.field-group { margin-bottom: 1.15rem; }

.login-label,
.field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.login-input-wrap,
.field-input {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    padding: 0 0.85rem 0 1rem;
    transition: var(--transition);
}

.login-input-wrap:focus-within,
.field-input:focus-within {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.login-icon { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; }

.field-input i { color: var(--text-dim); font-size: 1rem; }

.login-input,
.field-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.8rem 0;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
}

.login-input::placeholder,
.field-input input::placeholder { color: var(--text-dim); }

.field-toggle {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.field-toggle:hover { color: #e2e8f0; }

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.remember-check input { accent-color: var(--accent); }

.login-options,
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.login-options .form-check-label { color: var(--text-muted); }

.login-btn,
.btn-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.28);
}

.login-btn:hover,
.btn-login:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.login-btn-kamarier {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.login-btn-kamarier:hover {
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}

.login-footer { display: none; }

.login-form-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.35rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2.25rem;
    color: #93a4b8;
    font-size: 0.78rem;
    z-index: 2;
}

.login-form-footer strong { color: #94a3b8; font-weight: 600; }

@media (max-width: 991px) {
    .login-scene { grid-template-columns: 1fr; }
    .login-panel-brand { display: none; }
    .login-panel-form { min-height: 100vh; padding-bottom: 5rem; }
}
