/* Allauth — branded sign-in for BidSmart */

.allauth-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
    color: var(--gray-800);
}

/* Full-viewport dark gradient backdrop */
.allauth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(145deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-900) 100%);
    overflow: hidden;
}

/* Honeycomb pattern overlay */
.allauth-honeycomb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
}

/* Ambient radial glows */
.allauth-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.allauth-glow-top {
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
}

.allauth-glow-bottom {
    bottom: -15%;
    left: -5%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(232, 130, 12, 0.12) 0%, transparent 70%);
}

/* Two-panel split: brand on the dark backdrop (left), form panel (right) */
.allauth-split {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    animation: allauthFadeIn 1s ease-out forwards;
}

@keyframes allauthFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes allauthSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes allauthSlideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Respect reduced-motion: skip the entrance animations, show content immediately */
@media (prefers-reduced-motion: reduce) {
    .allauth-split,
    .allauth-brand-panel .allauth-brand,
    .allauth-brand-panel .allauth-tagline,
    .allauth-pills,
    .allauth-form-panel {
        animation: none;
        opacity: 1;
    }
}

/* Left panel — lives on the dark backdrop */
.allauth-brand-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    color: var(--color-white);
}

.allauth-brand-panel .allauth-brand {
    opacity: 0;
    animation: allauthSlideUp 0.5s ease-out 0.3s forwards;
}

.allauth-brand-panel .allauth-tagline {
    opacity: 0;
    animation: allauthSlideUp 0.5s ease-out 0.5s forwards;
}

.allauth-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
    max-width: 380px;
    opacity: 0;
    animation: allauthSlideUp 0.5s ease-out 0.7s forwards;
}

.allauth-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.02em;
}

/* Brand lockup: large icon + "BidSmart" / "by HiveMinds" */
.allauth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}

.allauth-brand-icon {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.35));
}

.allauth-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    margin-left: 8px;
}

.allauth-brand-title {
    font-size: 49px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--gradient-accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 24px rgba(139, 92, 246, 0.35);
}

.allauth-brand-subtitle {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 500;
    color: var(--color-hiveminds);
    letter-spacing: 0.04em;
    text-transform: none;
}

.allauth-tagline {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Right panel — solid dark card, matches hivesight.app/login's --surface (rgb(23,30,40)) */
.allauth-form-panel {
    width: 480px;
    flex-shrink: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    background: #171e28;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: allauthSlideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.allauth-form-panel-inner {
    position: relative;
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
}

.allauth-welcome {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.allauth-welcome-sub {
    margin: 0 0 36px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

/* Headings rendered by allauth's {% element h1 %} etc. */
.allauth-content h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.allauth-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0 0 24px;
}

/* Form + Continue button rendered by allauth */
.allauth-content form {
    margin: 0;
}

/* socialaccount/login.html wraps the button in .allauth-form-container */
.allauth-form-container {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Google sign-in button — dark, matches hivesight.app/login (bg = panel color, light border/text) */
.allauth-content .btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 44px;
    padding: 0 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: rgb(196, 205, 213);
    background: #171e28;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.allauth-content .btn-google:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: #1c2530;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: rgb(196, 205, 213);
}

.allauth-content .btn-google:active {
    background: #1c2530;
}

.allauth-content .btn-google svg {
    flex-shrink: 0;
}

/* Generic submit button fallback (non-Google flows) */
.allauth-content button[type="submit"]:not(.btn-google),
.allauth-content .allauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.allauth-content button[type="submit"]:not(.btn-google):hover,
.allauth-content .allauth-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
    color: var(--color-white);
}

/* Message list (errors, info) */
.allauth-messages {
    margin-bottom: 20px;
}

.allauth-messages ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.allauth-messages li {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid var(--color-warning-border);
    text-align: left;
}

/* Footer tagline */
.allauth-footer-note {
    margin: 20px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

/* Responsive: stack the split into one column below 860px */
@media (max-width: 860px) {
    .allauth-split {
        flex-direction: column;
    }

    .allauth-brand-panel {
        padding: 40px 24px 32px;
    }

    .allauth-form-panel {
        width: 100%;
        min-height: 0;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .allauth-form-panel {
        padding: 32px 20px;
    }

    .allauth-brand {
        gap: 0;
        margin-bottom: 14px;
    }

    .allauth-brand-icon {
        width: 72px;
        height: 72px;
    }

    .allauth-brand-text {
        margin-left: -8px;
    }

    .allauth-brand-title {
        font-size: 36px;
    }

    .allauth-brand-subtitle {
        font-size: 16px;
    }

    .allauth-tagline {
        font-size: 13px;
    }
}
