* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    display: grid;
    place-items: center;
}

.wrap {
    width: 100%;
    max-width: 420px;
    padding: clamp(0.875rem, 3vw, 1rem);
}

.box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    padding: clamp(1rem, 3vw, 1.5rem);
    animation: loginIn 0.35s ease;
}

h1 {
    margin: 0;
}

p {
    margin: 8px 0 18px;
    color: #6b7280;
}

input,
button {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    font: inherit;
}

input {
    border: 1px solid #d1d5db;
}

button {
    border: 0;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.error {
    margin-top: 8px;
    border-radius: 8px;
    padding: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.hint {
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
}

@keyframes loginIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 20rem) {
    .box {
        border-radius: 12px;
        padding: 0.875rem;
    }

    h1 {
        font-size: 1.25rem;
    }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
    .wrap {
        max-width: 460px;
    }
}

@media (min-width: 90rem) {
    .wrap {
        max-width: 500px;
    }
}
