:root {
    color: #111827;
    background: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 28%),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 20%),
                #eff2f7;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    padding: 36px;
}

.login-container h1 {
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
    text-align: center;
}

form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 10px;
}

label {
    font-size: 0.95rem;
    color: #6b7280;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #111827;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.pin-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pin-list input {
    min-height: 62px;
    border-radius: 18px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    padding: 0;
    border: 1px solid #d1d5db;
    background: #f8fafc;
}

button {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    background: #111827;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

button:hover,
button:focus-visible {
    background: #0f172a;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.status-text {
    font-size: 0.92rem;
    color: #2563eb;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.status-text.visible {
    opacity: 1;
    max-height: 2rem;
}

.status-text.error {
    color: #dc2626;
}

#pin-group {
    display: none;
}

#pin-group.visible {
    display: block;
}

@media (max-width: 520px) {
    .app-shell {
        padding: 18px;
    }

    .login-container {
        padding: 28px;
        border-radius: 22px;
    }

    .pin-list {
        gap: 10px;
    }

    .pin-list input {
        min-height: 56px;
        font-size: 1.25rem;
        letter-spacing: 0.22rem;
    }
}

.admin-panel {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    padding: 40px;
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2563eb;
}

.panel-header h1 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 2.6rem);
    line-height: 1.05;
    color: #111827;
}

.panel-copy {
    margin: 0;
    max-width: 680px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.account-form {
    display: grid;
    gap: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.account-form input[type="text"],
.account-form input[type="tel"],
.account-form select {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #111827;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-form input[type="text"]:focus,
.account-form input[type="tel"]:focus,
.account-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.account-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111827 50%), linear-gradient(135deg, #111827 50%, transparent 50%), radial-gradient(circle at top right, transparent 0, transparent 60%, #111827 61%, #111827 100%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0;
    background-size: 8px 8px, 8px 8px, 1.5em 1.5em;
    background-repeat: no-repeat;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
}

.account-form button {
    max-width: 240px;
}

@media (max-width: 520px) {
    .app-shell {
        padding: 18px;
    }

    .login-container {
        padding: 28px;
        border-radius: 22px;
    }

    .pin-list {
        gap: 10px;
    }

    .pin-list input {
        min-height: 56px;
        font-size: 1.25rem;
        letter-spacing: 0.22rem;
    }
}

