* {
    box-sizing: border-box;
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.05);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 28px;
}

.auth-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #111827;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}

.auth-brand-name {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
}

.auth-brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.3px;
}

.auth-heading p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.form-label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    min-height: 44px;
    border: 1px solid #d7dce2;
    border-radius: 7px;
    font-size: 14px;
    padding: 10px 12px;
    box-shadow: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12);
}

.auth-button {
    width: 100%;
    min-height: 44px;
    border-radius: 7px;
    border: 0;
    background: #111827;
    font-size: 14px;
    font-weight: 600;
}

.auth-button:hover,
.auth-button:focus {
    background: #1f2937;
}

.auth-button:disabled {
    opacity: 0.65;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #eef0f2;

    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.auth-footer a {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 7px;
    font-size: 13px;
    padding: 10px 12px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    border: 0;
    background: transparent;
    color: #6b7280;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.password-toggle:hover {
    color: #111827;
}

@media (max-width: 480px) {

    .auth-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 48px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: 10px;
    }

    .auth-heading h1 {
        font-size: 23px;
    }
}
