﻿/* ============================================================
   STOYCA LOGIN
   Universal Login (WinForms / Razor / Blazor)
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ============================================================
   THEME
   ============================================================ */

body.dark {
    --st-login-bg: #1b1b1c;
    --st-login-panel: #252526;
    --st-login-panel-hover: #2d2d30;
    --st-login-border: #3d3d40;
    --st-login-text: #f3f4f6;
    --st-login-muted: #9ca3af;
    --st-login-input: #1f1f20;
    --st-login-shadow: 0 24px 70px rgba(0,0,0,.45);
}

body.light {
    --st-login-bg: #f5f6f8;
    --st-login-panel: #ffffff;
    --st-login-panel-hover: #f7f7f8;
    --st-login-border: #d7d7d7;
    --st-login-text: #1f2937;
    --st-login-muted: #6b7280;
    --st-login-input: #ffffff;
    --st-login-shadow: 0 18px 50px rgba(0,0,0,.14);
}

/* ============================================================
   PAGE
   ============================================================ */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
    background: var(--st-login-bg);
    color: var(--st-login-text);
}

.sam-login-shell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

/* ============================================================
   CARD
   ============================================================ */

.sam-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--st-login-panel);
    border: 1px solid var(--st-login-border);
    border-radius: 16px;
    box-shadow: var(--st-login-shadow);
    padding: 26px;
    animation: samLoginShow .18s ease;
}

@keyframes samLoginShow {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   HEADER
   ============================================================ */

.sam-login-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.sam-login-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.sam-login-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--st-accent, #f59e0b);
}

.sam-login-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: var(--st-login-muted);
}

/* ============================================================
   FIELD
   ============================================================ */

.sam-login-field {
    margin-bottom: 18px;
}

    .sam-login-field label {
        display: block;
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--st-login-muted);
    }

    /* ============================================================
   INPUT
   ============================================================ */

    .sam-login-field input {
        width: 100%;
        height: 40px;
        border-radius: 8px;
        border: 1px solid var(--st-login-border);
        background: var(--st-login-input);
        color: var(--st-login-text);
        font-size: 14px;
        padding: 0 12px;
        outline: none;
        transition: border-color .18s, box-shadow .18s, background .18s;
    }

        .sam-login-field input:focus {
            border-color: var(--st-accent, #f59e0b);
            box-shadow: 0 0 0 3px rgba(245,158,11,.18);
        }

/* ============================================================
   PASSWORD
   ============================================================ */

.sam-login-password-wrap {
    position: relative;
}

    .sam-login-password-wrap input {
        padding-right: 46px;
    }

.sam-login-eye-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--st-login-muted);
    border-radius: 6px;
    cursor: pointer;
}

    .sam-login-eye-btn:hover {
        background: var(--st-login-panel-hover);
    }

/* ============================================================
   BUTTONS
   ============================================================ */

.sam-login-buttons {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.sam-login-btn {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--st-login-border);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

    .sam-login-btn.primary {
        background: linear-gradient(180deg, var(--st-accent, #f59e0b), #d97706);
        border-color: rgba(245,158,11,.65);
        color: #111827;
    }

        .sam-login-btn.primary:hover {
            background: linear-gradient(180deg, #ffb000, var(--st-accent, #f59e0b));
        }

    .sam-login-btn.secondary {
        background: var(--st-login-panel-hover);
        color: var(--st-login-text);
    }

        .sam-login-btn.secondary:hover {
            border-color: var(--st-accent, #f59e0b);
        }

/* ============================================================
   FOOTER
   ============================================================ */

.sam-login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--st-login-muted);
}
