﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
}

.card-top {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    padding: 28px 32px 24px;
    text-align: center;
    color: #fff;
}

    .card-top img {
        width: 64px;
        height: 64px;
        object-fit: contain;
        border-radius: 50%;
        background: rgba(255,255,255,.15);
        padding: 6px;
        margin-bottom: 12px;
    }

    .card-top h1 {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: -.01em;
    }

    .card-top p {
        font-size: .78rem;
        opacity: .75;
        margin-top: 4px;
    }

.card-body {
    padding: 24px 28px 28px;
}

.fg {
    margin-bottom: 14px;
}

    .fg label {
        display: block;
        font-size: .72rem;
        font-weight: 600;
        color: #475569;
        margin-bottom: 5px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .fg span {
        display: block;
        color: red;
        font-size: 0.90rem;
        margin: 8px;
    }

.input-wrap {
    position: relative;
}

    .input-wrap i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: .85rem;
        pointer-events: none;
    }

.fg input, .fg select {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: .85rem;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}

    .fg input:focus, .fg select:focus {
        outline: none;
        border-color: #3b82f6;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(59,130,246,.15);
    }

.btn-login {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-login:hover {
        opacity: .92;
    }

    .btn-login:active {
        transform: scale(.98);
    }

.footer-note {
    text-align: center;
    font-size: .68rem;
    color: #94a3b8;
    margin-top: 16px;
}

.validation-summary {
    display: block;
    color: red;
    font-size: 0.90rem;
    margin: 8px;
}

    .validation-summary ul {
        list-style: none;
    }