:root {
    --auth-primary: #7d0d16;
    --auth-primary-dark: #54080f;
    --auth-primary-soft: #f5e8ea;
    --auth-bg: #f3f4f6;
    --auth-card: #ffffff;
    --auth-text: #1f2937;
    --auth-muted: #6b7280;
    --auth-border: #dfe3e8;
    --auth-danger: #b42318;
    --auth-danger-bg: #fef3f2;
    --auth-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(
            circle at top right,
            rgba(125, 13, 22, 0.12),
            transparent 32%
        ),
        linear-gradient(135deg, #f8f9fb 0%, var(--auth-bg) 100%);
    color: var(--auth-text);
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--auth-card);
    border: 1px solid rgba(125, 13, 22, 0.08);
    border-radius: 22px;
    padding: 38px;
    box-shadow: var(--auth-shadow);
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-mark {
    display: inline-block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827;
}

.brand-mark span {
    color: var(--auth-primary);
}

.auth-brand p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-heading {
    margin-bottom: 26px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.2;
    color: #111827;
}

.auth-heading p {
    margin: 9px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
}

.alert {
    border-radius: 12px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    color: var(--auth-danger);
    background: var(--auth-danger-bg);
    border: 1px solid #fecdca;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-group input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 0 14px;
    background: #ffffff;
    color: var(--auth-text);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(125, 13, 22, 0.1);
    background: #fffdfd;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 72px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
}

.password-toggle:hover {
    color: var(--auth-primary-dark);
}

.field-error {
    color: var(--auth-danger);
    font-size: 13px;
    line-height: 1.4;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4b5563;
}

.remember-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}

.form-options a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 51px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--auth-primary),
        var(--auth-primary-dark)
    );
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(125, 13, 22, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(125, 13, 22, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eceff3;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
}
  .alert-success {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
@media (max-width: 576px) {
    .auth-page {
        align-items: flex-start;
        padding: 18px 14px;
    }

    .auth-card {
        margin-top: 18px;
        border-radius: 16px;
        padding: 28px 20px;
    }

    .brand-mark {
        font-size: 26px;
    }

    .auth-heading h1 {
        font-size: 25px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
    
}