/* Reset Global Base Styles */
.navbar,
.footer,
#atc-bot-widget,
.nav-mobile-header {
    display: none !important;
}

.container,
main.container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
}

html {
    background: #f8fafc !important;
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    /* Soft grid pattern background */
    background-color: #fafafa !important;
    background-image:
        linear-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .03) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #09090b;
}

/* Base Layout */
.modern-auth-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.modern-auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header */
.modern-auth-header {
    text-align: center;
}

.modern-auth-logo-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e4e4e7;
}

.modern-auth-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.modern-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #09090b;
    letter-spacing: -0.02em;
}

.modern-auth-subtitle {
    font-size: 0.95rem;
    color: #71717a;
    margin: 0;
}

/* Card */
.modern-auth-card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Form Styles */
.modern-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #09090b;
}

.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    color: #09090b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.modern-input::placeholder {
    color: #a1a1aa;
}

.modern-input:focus {
    outline: none;
    border-color: #09090b;
    box-shadow: 0 0 0 1px #09090b;
}

/* Select Box */
.modern-select-wrapper {
    position: relative;
    width: 100%;
}

.modern-select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.modern-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    pointer-events: none;
    font-size: 0.875rem;
}

/* Button */
.modern-auth-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #09090b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.modern-auth-btn:hover {
    background: #27272a;
}

/* Footer & Links */
.modern-auth-footer {
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
}

.modern-auth-footer a {
    color: #09090b;
    font-weight: 500;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.modern-auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.modern-auth-alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-auth-alert.danger,
.modern-auth-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.modern-auth-alert.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 480px) {
    .modern-auth-layout {
        padding: 1rem;
        background: white !important;
        /* On mobile, full white background is cleaner */
    }

    .modern-auth-card {
        padding: 2rem 1.5rem;
        border: none;
        box-shadow: none;
    }

    .modern-auth-logo-box {
        margin-top: 2rem;
    }
}