/* Authentication Pages - Unified Design System
   Matches trial page aesthetic with shadcn-inspired form styling
   All colors/fonts use CSS variables from base.css for whitelabel support
   ========================================================================== */

/* Import Base style for CSS variables */
@import url("../../../base.8661ccda5b70.css");

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

/* Body Styling */
body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-family-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background: var(--gradient-primary, linear-gradient(270deg, #1A8EB7 0%, #38C1DC 100%));
}

/* Main Container - Split Layout */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding */
.auth-branding {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    /* Use whitelabel gradient with darker overlay for better logo contrast */
    background: var(--gradient-primary, linear-gradient(270deg, #1A8EB7 0%, #38C1DC 100%));
    position: relative;
    overflow: hidden;
}

/* Animated floating shapes container */
.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Grid pattern with darker overlay for better logo contrast */
.auth-branding::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    pointer-events: none;
    z-index: 1;
}

/* Floating geometric shapes */
.auth-floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.auth-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15%;
    transform: rotate(45deg);
}

.auth-shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: -30px;
    animation: auth-float-1 20s ease-in-out infinite;
}

.auth-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    animation: auth-float-2 25s ease-in-out infinite;
}

.auth-shape-3 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 30%;
    border-color: rgba(255, 255, 255, 0.2);
    animation: auth-float-3 30s ease-in-out infinite;
}

.auth-shape-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: -20px;
    animation: auth-float-4 18s ease-in-out infinite;
}

.auth-shape-5 {
    width: 150px;
    height: 150px;
    top: -40px;
    right: 25%;
    border-color: rgba(255, 255, 255, 0.25);
    animation: auth-float-5 22s ease-in-out infinite;
}

.auth-shape-6 {
    width: 100px;
    height: 100px;
    top: 45%;
    left: 15%;
    border-color: rgba(255, 255, 255, 0.28);
    animation: auth-float-6 24s ease-in-out infinite;
}

.auth-shape-7 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 20%;
    border-color: rgba(255, 255, 255, 0.22);
    animation: auth-float-7 19s ease-in-out infinite;
}

.auth-shape-8 {
    width: 130px;
    height: 130px;
    top: 70%;
    left: -40px;
    border-color: rgba(255, 255, 255, 0.2);
    animation: auth-float-8 27s ease-in-out infinite;
}

.auth-shape-9 {
    width: 90px;
    height: 90px;
    top: 15%;
    right: 35%;
    border-color: rgba(255, 255, 255, 0.26);
    animation: auth-float-9 21s ease-in-out infinite;
}

.auth-shape-10 {
    width: 110px;
    height: 110px;
    bottom: -30px;
    right: -25px;
    border-color: rgba(255, 255, 255, 0.24);
    animation: auth-float-10 23s ease-in-out infinite;
}

@keyframes auth-float-1 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(55deg) translate(20px, 15px); }
    50% { transform: rotate(45deg) translate(10px, 30px); }
    75% { transform: rotate(35deg) translate(-10px, 15px); }
}

@keyframes auth-float-2 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    33% { transform: rotate(30deg) translate(-15px, 20px); }
    66% { transform: rotate(60deg) translate(15px, -10px); }
}

@keyframes auth-float-3 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(50deg) translate(-30px, -20px); }
}

@keyframes auth-float-4 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(60deg) translate(-10px, 25px); }
    50% { transform: rotate(45deg) translate(-20px, 10px); }
    75% { transform: rotate(30deg) translate(-5px, -15px); }
}

@keyframes auth-float-5 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    40% { transform: rotate(40deg) translate(25px, 15px); }
    80% { transform: rotate(50deg) translate(-15px, 25px); }
}

@keyframes auth-float-6 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    30% { transform: rotate(50deg) translate(18px, -12px); }
    60% { transform: rotate(40deg) translate(-15px, 20px); }
    90% { transform: rotate(55deg) translate(10px, 8px); }
}

@keyframes auth-float-7 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(35deg) translate(-12px, 18px); }
    50% { transform: rotate(55deg) translate(15px, -8px); }
    75% { transform: rotate(45deg) translate(-8px, -12px); }
}

@keyframes auth-float-8 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    33% { transform: rotate(50deg) translate(22px, 12px); }
    66% { transform: rotate(40deg) translate(-18px, 25px); }
}

@keyframes auth-float-9 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    20% { transform: rotate(60deg) translate(-20px, 15px); }
    40% { transform: rotate(30deg) translate(15px, -20px); }
    60% { transform: rotate(50deg) translate(-10px, -15px); }
    80% { transform: rotate(40deg) translate(18px, 10px); }
}

@keyframes auth-float-10 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    35% { transform: rotate(55deg) translate(-25px, -15px); }
    70% { transform: rotate(35deg) translate(20px, 22px); }
}

.auth-branding-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 20px 0;
}

.auth-branding-logo {
    margin-bottom: 56px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-branding-logo img {
    height: auto;
    width: auto;
    max-width: 280px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    filter: brightness(1.1);
}

.auth-branding-title {
    font-size: 48px;
    font-weight: var(--font-bold, 700);
    color: var(--text-inverse, #ffffff);
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-branding-title span {
    background: var(--button-gradient, var(--gradient-warning-danger, linear-gradient(135deg, var(--accent-color, var(--primary-color, #1A8EB7)) 0%, var(--primary-color, #1A8EB7) 100%)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-branding-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Right Side - Form */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-white, #ffffff);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Logo for mobile (hidden on desktop) */
.auth-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 32px;
}

.auth-mobile-logo img {
    height: 40px;
    width: auto;
}

/* Form Header */
.auth-form-header {
    margin-bottom: 32px;
}

.auth-form-title {
    font-size: 28px;
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #232323);
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.auth-form-subtitle {
    font-size: var(--text-sm, 15px);
    color: var(--text-muted, #959595);
    margin: 0;
    line-height: 1.5;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    color: var(--text-primary, #232323);
    margin-bottom: 8px;
}

/* Input Styling - shadcn style */
.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="number"],
.auth-form-group input[type="tel"] {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-normal, 400);
    color: var(--text-primary, #232323);
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-color, #C3D6E4);
    border-radius: var(--border-radius-sm, 8px);
    transition: all var(--transition-fast, 0.15s ease);
    font-family: inherit;
}

.auth-form-group input:hover {
    border-color: var(--border-light, #D0DBE6);
}

.auth-form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #1A8EB7);
    box-shadow: var(--input-box-shadow, 0 0 4px 0 rgba(26, 142, 183, 0.3));
}

.auth-form-group input::placeholder {
    color: var(--text-disabled, #8C96A0);
}

/* Error messages */
.auth-form-group .errorlist,
.auth-error {
    background: var(--danger-bg, #ffe5e5);
    border: 1px solid var(--danger-light, #F36769);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 8px;
    color: var(--danger-darker, #bb2f2f);
    font-size: var(--text-xs, 13px);
    line-height: 1.4;
}

.auth-form-group .errorlist li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Primary Button - Uses brand gradient */
.auth-btn-primary {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    font-size: var(--text-sm, 15px);
    font-weight: var(--font-semibold, 600);
    color: var(--text-inverse, #ffffff);
    background: var(--button-gradient, var(--gradient-warning-danger, linear-gradient(135deg, var(--accent-color, var(--primary-color, #1A8EB7)) 0%, var(--primary-color, #1A8EB7) 100%)));
    border: none;
    border-radius: var(--border-radius-sm, 8px);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease);
    font-family: inherit;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
}

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

.auth-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 142, 183, 0.3);
}

/* Alternative: Brand color button */
.auth-btn-brand {
    background: var(--primary-color, #1A8EB7);
}

.auth-btn-brand:hover {
    background: var(--primary-hover, #187a9d);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(26, 142, 183, 0.3));
}

/* Links Section */
.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-links a {
    color: var(--primary-color, #1A8EB7);
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    text-decoration: none;
    transition: color var(--transition-fast, 0.15s ease);
}

.auth-links a:hover {
    color: var(--primary-hover, #187a9d);
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-disabled, #8C96A0);
    font-size: var(--text-xs, 13px);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-lighter, #E9F0F5);
}

.auth-divider span {
    padding: 0 16px;
}

/* Footer */
.auth-form-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-lighter, #E9F0F5);
}

.auth-form-footer p {
    color: var(--text-muted, #959595);
    font-size: var(--text-sm, 14px);
    margin: 0;
}

.auth-form-footer a {
    color: var(--primary-color, #1A8EB7);
    font-weight: var(--font-semibold, 600);
    text-decoration: none;
}

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

/* Success Message */
.auth-success {
    background: var(--success-bg, #e5f9e7);
    border: 1px solid var(--success-light, #8FDE48);
    border-radius: var(--border-radius-sm, 8px);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--success-dark, #339933);
    font-size: var(--text-sm, 14px);
    line-height: 1.5;
    text-align: center;
}

/* Info Message */
.auth-info {
    background: var(--info-bg, #e3f2fd);
    border: 1px solid var(--info-light, #E2F4FA);
    border-radius: var(--border-radius-sm, 8px);
    padding: 16px;
    margin-bottom: 24px;
    color: var(--info-alt, #02599B);
    font-size: var(--text-sm, 14px);
    line-height: 1.5;
    text-align: center;
}

/* Two-Factor Token Input */
.auth-token-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px !important;
    font-weight: var(--font-semibold, 600) !important;
}

/* Backup/Secondary Buttons */
.auth-btn-secondary {
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    color: var(--text-secondary, #4A4A4A);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #C3D6E4);
    border-radius: var(--border-radius-sm, 8px);
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s ease);
}

.auth-btn-secondary:hover {
    background: var(--bg-tertiary, #F1F4F7);
    border-color: var(--border-light, #D0DBE6);
    color: var(--text-primary, #232323);
}

/* Device buttons for 2FA */
.auth-device-btn {
    width: 100%;
    margin-bottom: 8px;
    padding: 12px 16px;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-medium, 500);
    color: var(--text-primary, #232323);
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-color, #C3D6E4);
    border-radius: var(--border-radius-sm, 8px);
    cursor: pointer;
    transition: all var(--transition-fast, 0.15s ease);
}

.auth-device-btn:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: var(--border-light, #D0DBE6);
}

/* Icon Containers */
.auth-icon-success {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--success-bg, #e5f9e7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-success svg {
    width: 36px;
    height: 36px;
    color: var(--success-color, #57BE05);
}

.auth-icon-email {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--info-bg, #e3f2fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-email svg {
    width: 36px;
    height: 36px;
    color: var(--info-color, #06b6d4);
}

/* Center-only layout (for simpler pages like password reset done) */
.auth-center-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-center-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white, #ffffff);
    border-radius: var(--border-radius-lg, 16px);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
    text-align: center;
}

.auth-center-card .auth-form-title {
    text-align: center;
}

.auth-center-card .auth-form-subtitle {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-branding {
        padding: 40px;
    }
    
    .auth-branding-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-branding {
        display: none;
    }
    
    .auth-form-side {
        padding: 32px 24px;
    }
    
    .auth-mobile-logo {
        display: block;
    }
    
    .auth-form-title {
        font-size: 24px;
    }
    
    .auth-center-card {
        padding: 32px 24px;
        border-radius: var(--border-radius-md, 12px);
    }
}

/* Hide default Django admin elements */
body.auth-page #header,
body.auth-page .breadcrumbs,
body.auth-page #user-tools,
body.auth-page .dashboard #content,
body.auth-page #nav-sidebar,
body.auth-page #container {
    display: none !important;
}

/* Override any Jet admin styles */
body.auth-page .sidebar,
body.auth-page .branding,
body.auth-page .popup-backdrop {
    display: none !important;
}

/* ==========================================================================
   Trial Page Specific Styles
   ========================================================================== */

/* Cloud provider logos */
.auth-cloud-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.auth-cloud-logos img {
    height: 24px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-base, 0.2s ease);
}

.auth-cloud-logos img:hover {
    opacity: 1;
}

.auth-cloud-logos img.azure {
    height: 28px;
}

.auth-cloud-logos img.aws {
    height: 20px;
}

.auth-cloud-logos img.google {
    height: 24px;
}

/* Trial form - wider for more fields */
.auth-form-container.auth-form-wide {
    max-width: 480px;
}

/* Form row for side-by-side fields */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

/* Select styling */
.auth-form-group select {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    font-size: var(--text-sm, 14px);
    font-weight: var(--font-normal, 400);
    color: var(--text-primary, #232323);
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border-color, #C3D6E4);
    border-radius: var(--border-radius-sm, 8px);
    transition: all var(--transition-fast, 0.15s ease);
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238C96A0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.auth-form-group select:hover {
    border-color: var(--border-light, #D0DBE6);
}

.auth-form-group select:focus {
    outline: none;
    border-color: var(--primary-color, #1A8EB7);
    box-shadow: var(--input-box-shadow, 0 0 4px 0 rgba(26, 142, 183, 0.3));
}

/* Checkbox styling */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color, #1A8EB7);
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox label {
    font-size: var(--text-sm, 14px);
    color: var(--text-secondary, #4A4A4A);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.auth-checkbox label a {
    color: var(--primary-color, #1A8EB7);
    font-weight: var(--font-medium, 500);
    text-decoration: none;
}

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

/* Error text for trial form */
.auth-field-error {
    color: var(--danger-darker, #bb2f2f);
    font-size: var(--text-xs, 13px);
    margin-top: 6px;
}

/* Success Popup Modal */
.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-modal-overlay, rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.auth-popup-modal {
    background: var(--bg-white, #ffffff);
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-popup, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
}

.auth-popup-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.auth-popup-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-popup-title {
    font-size: 32px;
    font-weight: var(--font-bold, 700);
    color: var(--text-primary, #232323);
    margin: 0 0 16px 0;
}

.auth-popup-description {
    font-size: var(--text-base, 16px);
    color: var(--text-muted, #959595);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.auth-popup-description p {
    margin: 0 0 8px 0;
}

.auth-popup-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: var(--text-sm, 15px);
    font-weight: var(--font-semibold, 600);
    color: var(--text-inverse, #ffffff);
    background: var(--button-gradient, var(--gradient-warning-danger, linear-gradient(135deg, var(--accent-color, var(--primary-color, #1A8EB7)) 0%, var(--primary-color, #1A8EB7) 100%)));
    border: none;
    border-radius: var(--border-radius-sm, 8px);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease);
}

.auth-popup-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
    color: var(--text-inverse, #ffffff);
    text-decoration: none;
}

/* Loading spinner for submit button */
.auth-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn-loading .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-inverse, #ffffff);
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Answer/Response area */
#answer {
    margin-bottom: 16px;
}

#answer .auth-error {
    margin-top: 0;
}
