/* Стилове извън MudBlazor — само за екрана за вход и дребни поправки. */

html, body {
    margin: 0;
    background: #0E1116;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* --- Екран за вход ------------------------------------------------------ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

/* Мека светлина зад картата, за да не е плосък фонът. */
.login-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 140, 255, 0.18) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 28px;
    background: #171C24 !important;
    border: 1px solid #2A3341;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.login-title {
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #EEF2F7;
}

.login-title-accent {
    color: #4F8CFF;
}

.login-subtitle {
    color: #97A3B6 !important;
    margin-bottom: 28px !important;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: #97A3B6;
    margin-bottom: 6px;
}

.field-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    margin-bottom: 18px;
    background: #1F2630;
    border: 1px solid #2A3341;
    border-radius: 12px;
    color: #EEF2F7;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input::placeholder {
    color: #5C6779;
}

.field-input:focus {
    outline: none;
    border-color: #4F8CFF;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
}

.login-button {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, #4F8CFF 0%, #2F6BDE 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease;
}

.login-button:hover {
    filter: brightness(1.08);
}

.login-button:active {
    transform: translateY(1px);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    margin-bottom: 14px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 10px;
    color: #F87171;
    font-size: 14px;
}

.login-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #2A3341;
    font-size: 12.5px;
    color: #5C6779;
    text-align: center;
}

.login-hint code {
    padding: 2px 6px;
    background: #1F2630;
    border-radius: 5px;
    color: #97A3B6;
}

/* Валидационните съобщения на Blazor. */
.validation-message {
    margin: -12px 0 14px;
    color: #F87171;
    font-size: 13px;
}

/* --- Лентата за грешки на Blazor --------------------------------------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: #FBBF24;
    color: #111;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
}
