

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--bg-color);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 12px var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    max-width: 150px;
    height: auto;
}

.auth-store-name {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.auth-title {
    text-align: left;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    text-align: left;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

[data-page="login"] .auth-title {
    text-align: left;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

[data-page="login"] .auth-subtitle {
    text-align: left;
    font-size: 0.8rem;
}

[data-page="login"] .auth-form {}

.auth-link {
    color: var(--btn-outline-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

[data-theme="dark"] .auth-link {
    color: #ff6b9d;
}

.auth-form {

}

.auth-switch {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.auth-switch__btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.auth-switch__btn:hover {
    background-color: rgba(44, 62, 80, 0.06);
}

.auth-switch__btn.is-active {
    border-color: var(--btn-outline-color);
    background-color: rgba(44, 62, 80, 0.10);
}

[data-theme="dark"] .auth-switch__btn:hover {
    background-color: rgba(255, 107, 157, 0.08);
}

[data-theme="dark"] .auth-switch__btn.is-active {
    border-color: #ff6b9d;
    background-color: rgba(255, 107, 157, 0.14);
}

.auth-form .mb-4 {
    margin-bottom: 1.25rem !important;
}

.auth-form .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.2s;
}

.auth-form .form-control.is-invalid,
.auth-form.was-validated .form-control:invalid {
    padding-right: calc(1.5em + .75rem);
    background-position: right calc(.375em + .1875rem) center;
}

.auth-form .form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--btn-outline-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
    color: var(--text-color);
}

[data-theme="dark"] .auth-form .form-control:focus {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
}

.auth-form .form-control::placeholder {
    color: var(--text-muted);
}

.auth-button {
    width: 100%;
    padding: 0.875rem;
    background-color: #2c3e50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-button:hover {
    background-color: #1a252f;
}

[data-theme="dark"] .auth-button {
    background-color: #ff6b9d;
    color: #1a1c33;
}

[data-theme="dark"] .auth-button:hover {
    background-color: #ff4d8a;
}

.auth-logout-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-page .alert {
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .auth-container {
        padding: 2rem 1.5rem;
    }

    .auth-store-name {
        font-size: 1.75rem;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-subtitle {
        font-size: 0.9rem;
    }
}
