/* Auth pages - MonSite24 style */
:root {
    --color-primary: #2563EB;
    --color-primary-hover: #1D4ED8;
    --color-secondary: #F97316;
    --color-text: #111827;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-light: #F3F4F6;
    --color-border: #E5E7EB;
    --color-shadow: rgba(37, 99, 235, 0.12);
    --radius: 16px;
    --transition: all 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    color: var(--color-text);
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-image: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 45%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.12), transparent 45%);
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 25px 80px var(--color-shadow);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-card {
        max-width: 760px;
    }

    .auth-card--login {
        max-width: 420px;
        margin: 0 auto;
    }
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -50% -50% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 70%);
    pointer-events: none;
}

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

.auth-logo {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}

.logo-24 {
    color: var(--color-secondary);
}

.auth-tagline {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.auth-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0 0 1.75rem 0;
}

.auth-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.4rem 0 0.2rem;
    color: var(--color-text);
}

.auth-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.auth-form > div {
    margin-bottom: 1rem;
}

.auth-form > div:last-of-type {
    margin-bottom: 0.5rem;
}

.auth-form--compact > div {
    margin-bottom: 0.6rem;
}

.auth-form--compact input,
.auth-form--compact select,
.auth-form--compact textarea {
    margin-bottom: 0.6rem;
}

@media (min-width: 1024px) {
    .auth-form--compact {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-form--compact > div {
        margin-bottom: 0;
    }
}

.auth-form--compact .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .auth-form--compact .form-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }

    .auth-form--compact .form-row--full {
        grid-template-columns: 1fr;
    }

    .auth-form--compact .form-row > div {
        margin-bottom: 0;
    }
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.auth-actions label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    text-align: left;
}

.auth-checkbox-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auth-checkbox-label {
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-checkbox-input {
    align-self: center;
}

.auth-button {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-button:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.auth-inline-link {
    color: var(--color-primary);
    text-decoration: none;
}

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

.auth-helper {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.password-help-text {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.password-errors {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.password-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-errors li {
    color: #DC2626;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.address-suggestions {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 0.8rem;
    padding: 0.25rem;
}

.address-suggestions:empty {
    display: none;
}

.address-suggestion {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.address-suggestion:hover {
    background: #EEF2FF;
    color: var(--color-primary);
}


@media (max-width: 640px) {
    .auth-card {
        padding: 1.75rem;
    }
}

