/* Modern Minimalist Auth Layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.navbar, .premium-navbar, .footer, #atc-bot-widget, .nav-mobile-header {
    display: none !important;
}

html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fafafa !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    /* Тонкий фоновый паттерн для глубины */
    background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
    background-size: 24px 24px;
}

.auth-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
}

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

.auth-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #171717;
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.03em;
}

.auth-header p {
    font-size: 0.95rem;
    color: #737373;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #404040;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #171717;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #a3a3a3;
}

.auth-input:focus {
    outline: none;
    border-color: #a3a3a3;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.auth-btn {
    width: 100%;
    padding: 0.85rem;
    background-color: #171717;
    color: #ffffff;
    border: 1px solid #171717;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-btn:hover {
    background-color: #262626;
    border-color: #262626;
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #737373;
}

.auth-footer a {
    color: #171717;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.3rem;
    transition: color 0.2s ease;
}

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

/* Custom Select box */
.select-wrapper {
    position: relative;
}

.auth-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #737373;
    pointer-events: none;
    font-size: 0.85rem;
}

/* Flash Messages */
.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.auth-alert.error, .auth-alert.danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.auth-alert.success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* Hide visual side entirely for minimalism */
.auth-visual-side {
    display: none !important;
}
.auth-form-side {
    padding: 0 !important;
}

@media (max-width: 480px) {
    .auth-layout {
        padding: 0.5rem;
    }
    .auth-card {
        padding: 2rem 1.25rem;
        border-radius: 12px;
    }
    .auth-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    .auth-header {
        margin-bottom: 1.5rem;
    }
    .auth-header h1 {
        font-size: 1.3rem; /* Чуть меньше, чтобы не переносилось */
    }
    .auth-header p {
        font-size: 0.85rem;
    }
    .auth-form {
        gap: 1rem;
    }
    .auth-input {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }
    .auth-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}