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

.allauth-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* Full-viewport dark gradient backdrop */
.allauth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 50%, #0F172A 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%);
}

/* Vertical stack: hero (logo + tagline) above card */
.allauth-stack {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    animation: allauthFadeIn 0.6s ease-out;
}

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

/* Hero section — lives on the dark backdrop, above the card */
.allauth-hero {
    text-align: center;
    color: #ffffff;
}

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

.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: -10px;
}

.allauth-brand-title {
    font-size: 49px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #C4A8FF 0%, #A78BFA 100%);
    -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: 2px;
    font-size: 22px;
    font-weight: 500;
    color: #C0392B;
    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;
}

/* Centered glass card — now only holds the sign-in form */
.allauth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 32px 36px 24px;
    text-align: center;
}

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

.allauth-content p {
    font-size: 14px;
    color: #6b7280;
    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 — neutral white, multi-color Google logo */
.allauth-content .btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border: 1.5px solid #E8EEF3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #4A6580;
    background: #ffffff;
    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: #CBD5E1;
    background: #FAFBFC;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    color: #4A6580;
}

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

.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: #ffffff;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 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: #ffffff;
}

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

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

.allauth-messages li {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #fde68a;
    text-align: left;
}

/* Footer tagline */
.allauth-footer-note {
    margin: 20px 0 0;
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 480px) {
    .allauth-stack {
        gap: 28px;
    }

    .allauth-card {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .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;
    }
}
