* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #eef2f7;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 420px);
    background: #ffffff;
    border: 1px solid #d9e0eb;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(20, 31, 49, 0.16);
    padding: 32px;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.brand img {
    width: 200px;
    max-width: 80%;
    height: auto;
}

.auth-status {
    text-align: center;
    color: #58657a;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
}

.subcopy {
    margin: -4px 0 0;
    color: #58657a;
    font-size: 14px;
    text-align: center;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #384458;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    border: 1px solid #c8d1de;
    border-radius: 6px;
    padding: 11px 12px;
    color: #172033;
    background: #ffffff;
}

input:focus {
    outline: 2px solid #8aa2ff;
    outline-offset: 1px;
    border-color: #4f66d7;
}

button[type="submit"] {
    border: 0;
    border-radius: 6px;
    padding: 12px 14px;
    color: #ffffff;
    background: #4357c9;
    font-weight: 700;
    cursor: pointer;
}

button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth-actions button,
.text-button {
    border: 0;
    background: transparent;
    color: #4357c9;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.message {
    min-height: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    white-space: pre-line;
}

.message.error {
    color: #b42318;
}

.message.success {
    color: #087443;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.password-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.password-complexity {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #475569;
}

.complexity-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.complexity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    transition: color 0.2s ease;
}

.req-item.met {
    color: #087443;
    font-weight: 600;
}

.req-item.unmet {
    color: #94a3b8;
}

.req-icon {
    font-weight: bold;
    display: inline-block;
    width: 14px;
    text-align: center;
}

.req-item.met .req-icon {
    color: #087443;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

    .auth-actions {
        flex-direction: column;
        align-items: center;
    }
}
