/* FairDay Authentication Page Styles - Inspired by Landsay Template */

.authentication-bg {
    background-image: url('../media/bg-auth.png');
    background-color: rgba(59, 130, 246, 0.12);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.dark .auth-card {
    background: rgba(31, 41, 55, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.auth-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.dark .auth-logo img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.dark .auth-title {
    color: #f9fafb;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.dark .auth-subtitle {
    color: #9ca3af;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.dark .step-indicator::before {
    background: #374151;
}

.step-indicator-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-indicator-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.dark .step-indicator-circle {
    background: #374151;
    color: #6b7280;
}

.step-indicator-item.active .step-indicator-circle {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.step-indicator-item.completed .step-indicator-circle {
    background: #10b981;
    color: white;
}

.step-indicator-label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.dark .step-indicator-label {
    color: #6b7280;
}

.step-indicator-item.active .step-indicator-label {
    color: #3b82f6;
}

.dark .step-indicator-item.active .step-indicator-label {
    color: #60a5fa;
}

.step-indicator-item.completed .step-indicator-label {
    color: #10b981;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
}

.dark .step-title {
    color: #f9fafb;
}

.plan-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: white;
}

.dark .plan-card {
    background: #1f2937;
    border-color: #374151;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dark .plan-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.plan-card.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.dark .plan-card.selected {
    background: rgba(59, 130, 246, 0.1);
    border-color: #60a5fa;
}

.plan-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: #3b82f6;
    color: white;
    border-radius: 9999px;
    margin-top: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.dark .plan-price {
    color: #f9fafb;
}

.plan-price-currency {
    font-size: 1.5rem;
}

.plan-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

.dark .plan-period {
    color: #9ca3af;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.dark .plan-features li {
    color: #d1d5db;
}

.plan-features .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.payment-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.dark .payment-summary {
    background: #111827;
    border-color: #374151;
}

.info-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.dark .info-box {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.info-box-icon {
    flex-shrink: 0;
    color: #3b82f6;
    font-size: 1.25rem;
}

.warning-box {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 4px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.dark .warning-box {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(252, 211, 77, 0.3);
}

.warning-box-icon {
    flex-shrink: 0;
    color: #fbbf24;
    font-size: 1.25rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.dark .auth-footer {
    border-top-color: #374151;
}

.auth-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.dark .auth-link {
    color: #60a5fa;
}

.dark .auth-link:hover {
    color: #93c5fd;
}

/* Stripe Element Styling */
.StripeElement {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s ease;
}

.dark .StripeElement {
    background-color: #1f2937;
    border-color: #374151;
}

.StripeElement--focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.StripeElement--invalid {
    border-color: #ef4444;
}

/* Loading Spinner */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .step-indicator-label {
        font-size: 0.625rem;
    }

    .step-indicator-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .plan-card {
        margin-bottom: 1rem;
    }
}
