﻿* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f6fb;
    color: #0f172a;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at top left, rgba(37,99,235,0.10), transparent 34%), linear-gradient(to right, rgba(37,99,235,0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(37,99,235,0.045) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.login-card {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 28px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
}

.brand-company {
    color: #64748b;
    font-size: 14px;
}

.brand-title {
    color: #0f172a;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.subtitle {
    margin: 10px 0 30px;
    color: #64748b;
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 20px;
}

.form-group label,
.label-row label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .label-row a {
        color: #3b82f6;
        font-size: 14px;
        text-decoration: none;
    }

        .label-row a:hover {
            text-decoration: underline;
        }

.input-wrapper {
    position: relative;
}

    .input-wrapper input {
        width: 100%;
        height: 54px;
        border: 1px solid #cbd5e1;
        border-radius: 16px;
        padding: 0 48px;
        background: #ffffff;
        color: #0f172a;
        font: inherit;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .input-wrapper input::placeholder {
            color: #94a3b8;
        }

        .input-wrapper input:hover {
            border-color: #94a3b8;
        }

        .input-wrapper input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
        }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-action {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
}

.totp-input {
    letter-spacing: 0.28em;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

    .checkbox-label input {
        width: 16px;
        height: 16px;
        accent-color: #2563eb;
    }

.login-button {
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37,99,235,0.20);
    transition: background .15s ease, transform .15s ease;
}

    .login-button:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
    }

.security-note {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.validation-summary,
.field-validation {
    color: #dc2626;
    font-size: 14px;
}

@media (max-width: 520px) {
    .login-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    h1 {
        font-size: 28px;
    }
}
