/**
 * Beta Signup Specific Styles
 * Extends auth.css and external.css
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
    --star: #CFE3FF;  /* Star tint */
}

/* ============================================================================
   Beta Container Enhancements
   ============================================================================ */

.beta-container {
    max-width: 550px;
}

/* Beta Badge - positioned in purple header */
.beta-container .auth-header {
    position: relative;
    padding-top: 4.5rem !important; /* Extra space for badge */
    /* Hero section gradient background - Dark abyss to violet edges */
    background:
        radial-gradient(ellipse 1200px 400px at 50% -5%, rgba(107, 91, 255, 0.6), transparent 50%),
        radial-gradient(ellipse 1000px 300px at 80% 100%, rgba(139, 127, 255, 0.4), transparent 50%),
        linear-gradient(180deg, #3d4585 0%, #1B1F54 20%, #0B0F27 35%, #0B0F27 65%, #1B1F54 80%, #3d4585 100%) !important;
    overflow: hidden; /* Contain stars within rounded corners */
}

.beta-container .auth-header .beta-badge {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(0, 0, 0, 0.4);
    color: #D4AF37;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.6);
    z-index: 100 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
}

.beta-container .auth-header .beta-badge i {
    margin-right: 0.5rem;
    color: #D4AF37;
}

/* Keep header text centered */
.beta-container .auth-header h2,
.beta-container .auth-header p {
    text-align: center;
}

/* ============================================================================
   Starfield Effect for Headers
   ============================================================================ */

/* Star layers for beta headers */
.header-stars,
.header-stars2,
.header-stars3 {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.header-stars {
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, var(--star) 70%, transparent 72%),
        radial-gradient(1.5px 1.5px at 80px 120px, var(--star) 70%, transparent 72%),
        radial-gradient(1.5px 1.5px at 200px 60px, var(--star) 70%, transparent 72%);
    background-size: 240px 240px, 340px 340px, 520px 520px;
    opacity: 0.8;
    animation: drift-stars 60s linear infinite;
}

.header-stars2 {
    background-image: 
        radial-gradient(1.8px 1.8px at 50px 90px, var(--star) 75%, transparent 77%),
        radial-gradient(1.8px 1.8px at 140px 210px, var(--star) 75%, transparent 77%),
        radial-gradient(1.8px 1.8px at 260px 40px, var(--star) 75%, transparent 77%);
    background-size: 320px 320px, 420px 420px, 520px 520px;
    opacity: 0.6;
    animation: drift-stars2 90s linear infinite;
}

.header-stars3 {
    background-image: 
        radial-gradient(1.2px 1.2px at 30px 40px, var(--star) 70%, transparent 72%),
        radial-gradient(1.2px 1.2px at 110px 180px, var(--star) 70%, transparent 72%),
        radial-gradient(1.2px 1.2px at 250px 70px, var(--star) 70%, transparent 72%);
    background-size: 220px 220px, 310px 310px, 480px 480px;
    opacity: 0.5;
    animation: drift-stars3 120s linear infinite;
}

@keyframes drift-stars {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: -240px 240px, -340px 340px, -520px 520px; }
}

@keyframes drift-stars2 {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: -320px 320px, -420px 420px, -520px 520px; }
}

@keyframes drift-stars3 {
    from { background-position: 0 0, 0 0, 0 0; }
    to { background-position: -220px 220px, -310px 310px, -480px 480px; }
}

/* Ensure text and badges are above stars */
.beta-container .auth-header h2,
.beta-container .auth-header p,
.beta-container .auth-header .beta-badge {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   Form Enhancements
   ============================================================================ */

/* Domain Validation Status */
.domain-validation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
    transition: all 0.3s ease;
}

.domain-validation-status.validating {
    color: #6B5BFF;
}

.domain-validation-status.validating .status-icon::before {
    content: "\f110";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    animation: spin 1s linear infinite;
}

.domain-validation-status.valid {
    color: #22c55e;
}

.domain-validation-status.valid .status-icon::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.domain-validation-status.invalid {
    color: #dc3545;
}

.domain-validation-status.invalid .status-icon::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.domain-validation-status .status-text {
    flex: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Use Case Other Group - smooth reveal */
#useCaseOtherGroup {
    transition: all 0.3s ease;
    overflow: hidden;
}

#useCaseOtherGroup.show {
    display: block !important;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Character Counter */
.form-text span {
    font-weight: 500;
    color: #6B5BFF;
}

/* Submit Button States */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ============================================================================
   Beta Microcopy
   ============================================================================ */

.beta-microcopy {
    text-align: center;
    padding: 1.5rem 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.beta-microcopy i {
    color: #6B5BFF;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: block;
}

.beta-microcopy p {
    color: #6c757d;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
   Confirmation Page Styles
   ============================================================================ */

.confirmation-container {
    max-width: 600px;
}

/* Success/Error Icon - HIDDEN (icon now in header) */
.confirmation-icon {
    display: none !important;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 8px 24px rgba(107, 91, 255, 0.3);
    animation: scaleIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.icon-circle.success {
    background: linear-gradient(135deg, #00D7C8 0%, #00BFB2 100%);
    box-shadow: 0 8px 24px rgba(0, 215, 200, 0.3);
}

.icon-circle.error {
    background: linear-gradient(135deg, #FF3D5A 0%, #E6355C 100%);
    box-shadow: 0 8px 24px rgba(255, 61, 90, 0.3);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Email Display */
.email-display {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.5rem;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Confirmation Steps */
.confirmation-steps {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #f0f4ff;
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
}

/* Completed steps - Green */
.step-item.completed .step-number {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.step-item.completed {
    border-left: 3px solid #22c55e;
}

/* Pending steps - Grey */
.step-item.pending .step-number {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
}

.step-item.pending {
    border-left: 3px solid #e2e8f0;
    opacity: 0.8;
}

.step-item.pending .step-content h5 {
    color: #64748b;
}

.step-item.pending .step-content p {
    color: #94a3b8;
}

.step-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Alert Enhancements */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert div {
    flex: 1;
}

.alert-link {
    font-weight: 600;
    text-decoration: underline;
}

.alert-link:hover {
    text-decoration: none;
}

/* ============================================================================
   Verification Page Styles
   ============================================================================ */

.verification-container {
    max-width: 600px;
}

/* Purple glow around verification card */
.verification-card-glow {
    box-shadow: 0 0 30px rgba(107, 91, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid rgba(107, 91, 255, 0.3) !important;
}

/* Verification Header - Icon left of text with circle */
.verification-header {
    /* Hero section gradient background - Dark abyss to violet edges */
    background:
        radial-gradient(ellipse 1200px 400px at 50% -5%, rgba(107, 91, 255, 0.6), transparent 50%),
        radial-gradient(ellipse 1000px 300px at 80% 100%, rgba(139, 127, 255, 0.4), transparent 50%),
        linear-gradient(180deg, #3d4585 0%, #1B1F54 20%, #0B0F27 35%, #0B0F27 65%, #1B1F54 80%, #3d4585 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 0 -2rem !important;
    padding: 1.75rem 2rem 1.75rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% + 4rem) !important;
    position: relative;
    left: 0;
    overflow: hidden; /* Contain stars within rounded corners */
}

.verification-header .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.verification-header .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verification-header .icon-circle i {
    font-size: 2rem;
    line-height: 1;
}

.verification-header .header-text {
    text-align: left;
}

.verification-header h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.verification-header .email-display {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.2;
}

.verification-header.success {
    /* Hero section gradient background - Dark abyss to violet edges */
    background:
        radial-gradient(ellipse 1200px 400px at 50% -5%, rgba(107, 91, 255, 0.6), transparent 50%),
        radial-gradient(ellipse 1000px 300px at 80% 100%, rgba(139, 127, 255, 0.4), transparent 50%),
        linear-gradient(180deg, #3d4585 0%, #1B1F54 20%, #0B0F27 35%, #0B0F27 65%, #1B1F54 80%, #3d4585 100%) !important;
}

/* Demo Header - Simple centered header for testing */
.demo-header {
    /* Hero section gradient background - Dark abyss to violet edges */
    background:
        radial-gradient(ellipse 1200px 400px at 50% -5%, rgba(107, 91, 255, 0.6), transparent 50%),
        radial-gradient(ellipse 1000px 300px at 80% 100%, rgba(139, 127, 255, 0.4), transparent 50%),
        linear-gradient(180deg, #3d4585 0%, #1B1F54 20%, #0B0F27 35%, #0B0F27 65%, #1B1F54 80%, #3d4585 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 0 -2rem !important;
    padding: 1.75rem 2rem 1.75rem 2rem !important;
    width: calc(100% + 4rem) !important;
    position: relative;
    left: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden; /* Contain stars within rounded corners */
}

.demo-header h2 {
    margin: 0 !important;
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center !important;
    position: relative;
    z-index: 1;
}

.verification-header.error {
    /* Hero section gradient background - Dark abyss to violet edges */
    background:
        radial-gradient(ellipse 1200px 400px at 50% -5%, rgba(107, 91, 255, 0.6), transparent 50%),
        radial-gradient(ellipse 1000px 300px at 80% 100%, rgba(139, 127, 255, 0.4), transparent 50%),
        linear-gradient(180deg, #3d4585 0%, #1B1F54 20%, #0B0F27 35%, #0B0F27 65%, #1B1F54 80%, #3d4585 100%) !important;
}

.verification-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.verification-header .email-display {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.header-icon i {
    font-size: 1.75rem;
    color: white;
}

/* Help Text */
.help-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.help-text a {
    color: #6B5BFF;
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}

.verification-info,
.verification-help {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.verification-info h5,
.verification-help h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.verification-info p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.verification-help ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
    color: #6c757d;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    width: 2px;
    height: calc(100% - 2rem);
    background: #e9ecef;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
    background: linear-gradient(135deg, #00D7C8 0%, #00BFB2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 215, 200, 0.3);
}

.timeline-item.pending .timeline-marker {
    background: linear-gradient(135deg, #6B5BFF 0%, #5a4ad9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 91, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-item.future .timeline-marker {
    background: #e9ecef;
    color: #adb5bd;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.timeline-content h6 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.timeline-item.completed .timeline-content h6 {
    color: #00BFB2;
}

.timeline-item.pending .timeline-content h6 {
    color: #6B5BFF;
}

.timeline-item.future .timeline-content {
    opacity: 0.6;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .beta-container {
        margin: 2rem auto;
    }
    
    .confirmation-icon {
        margin-bottom: 1.5rem;
    }
    
    .icon-circle {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }
    
    .step-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-content h5 {
        font-size: 0.9375rem;
    }
    
    .step-content p {
        font-size: 0.875rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .timeline-item::before {
        left: 1rem;
    }
}

@media (max-width: 576px) {
    .beta-badge {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }
    
    .email-display {
        font-size: 1rem;
        word-break: break-all;
    }
}

/* ============================================================================
   Verification Success Alert
   ============================================================================ */

.verification-success {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
}

.success-icon-large {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.success-icon-large i {
    font-size: 4rem;
    color: #22c55e;
    display: block;
    line-height: 1;
}

.success-message {
    flex: 1;
    color: #166534;
}

.success-message strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 576px) {
    .verification-success {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .success-icon-large i {
        font-size: 3rem;
    }
}

