/* ==============================================
   REGISTER PAGE STYLES
   ============================================== */

.register-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7.5rem 1rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.03) 0%, rgba(40, 167, 69, 0.03) 100%);
}

.register-section {
    width: 100%;
    max-width: 580px;
}

.register-container {
    width: 100%;
}

.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    background: #e2e8f0;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.step-badge.active {
    background: #00b4ff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 180, 255, 0.3);
}

.step-badge.completed {
    background: #22c55e;
    color: white;
}

.register-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.register-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Plan Toggle */
.register-plan-toggle {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.plan-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-toggle-btn:hover {
    color: #0f172a;
}

.plan-toggle-btn.active {
    background: white;
    color: #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plan-toggle-btn.premium.active {
    color: #00b4ff;
}

.plan-toggle-btn i {
    font-size: 1rem;
}

/* Benefits Section */
.register-benefits-section {
    margin-bottom: 1.25rem;
}

.benefits-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #00b4ff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.benefits-toggle-btn:hover {
    color: #0096d9;
}

.benefits-list {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.benefits-list.free {
    border-left: 3px solid #28a745;
}

.benefits-list.premium {
    border-left: 3px solid #00b4ff;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #334155;
}

.benefit-item i {
    font-size: 1rem;
}

.benefits-list.free .benefit-item i {
    color: #28a745;
}

.benefits-list.premium .benefit-item i {
    color: #00b4ff;
}

.benefits-meta {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0.75rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

/* Alerts */
.register-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.register-alert i {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.register-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.register-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.register-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.register-alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Payment Notice */
.register-payment-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.register-payment-notice i {
    font-size: 1rem;
}

.register-payment-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1e40af;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.register-payment-info i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.register-helper-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

/* Input with Icon */
.register-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.register-input-with-icon .register-form-input {
    padding-right: 3rem;
}

.register-input-with-icon i {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.register-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.register-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.register-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
}

.register-form-input:focus {
    outline: none;
    border-color: #00b4ff;
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
}

.register-form-input::placeholder {
    color: #94a3b8;
}

.register-form-input:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* Password Field */
.register-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.register-password-wrapper .register-form-input {
    padding-right: 3rem;
}

.register-password-toggle {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.register-password-toggle:hover {
    color: #0f172a;
}

.register-field-error {
    color: #dc2626;
    font-size: 0.85rem;
}

/* Terms */
.register-terms {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.register-terms a {
    color: #00b4ff;
    text-decoration: none;
}

.register-terms a:hover {
    text-decoration: underline;
}

/* Submit Button */
.register-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.register-submit-button.free {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.register-submit-button.free:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.register-submit-button.premium {
    background: linear-gradient(135deg, #00b4ff, #0096d9);
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.3);
}

.register-submit-button.premium:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 255, 0.4);
}

.register-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.register-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: register-spin 0.8s linear infinite;
}

@keyframes register-spin {
    to { transform: rotate(360deg); }
}

/* Form Actions (for payment step) */
.register-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.register-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-back-button:hover:not(:disabled) {
    border-color: #cbd5e1;
    color: #475569;
}

.register-back-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.register-form-actions .register-submit-button {
    flex: 1;
    margin-top: 0;
}

/* Sign In Prompt */
.register-signin-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.register-signin-text {
    color: #64748b;
    font-size: 0.95rem;
}

.register-signin-link {
    color: #00b4ff;
    font-weight: 600;
    text-decoration: none;
}

.register-signin-link:hover {
    text-decoration: underline;
}

/* ==============================================
   DARK MODE SUPPORT
   ============================================== */

body.dark-mode .register-shell {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.05) 0%, rgba(40, 167, 69, 0.05) 100%);
}

body.dark-mode .register-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .register-title {
    color: #f1f5f9;
}

body.dark-mode .register-subtitle {
    color: #94a3b8;
}

body.dark-mode .step-badge {
    background: #475569;
    color: #94a3b8;
}

body.dark-mode .step-badge.active {
    background: #4fc3f7;
    color: #0f172a;
}

body.dark-mode .step-badge.completed {
    background: #22c55e;
}

body.dark-mode .register-plan-toggle {
    background: #334155;
}

body.dark-mode .plan-toggle-btn {
    color: #94a3b8;
}

body.dark-mode .plan-toggle-btn:hover {
    color: #f1f5f9;
}

body.dark-mode .plan-toggle-btn.active {
    background: #475569;
    color: #4ade80;
}

body.dark-mode .plan-toggle-btn.premium.active {
    color: #4fc3f7;
}

body.dark-mode .benefits-toggle-btn {
    color: #4fc3f7;
}

body.dark-mode .benefits-list {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .benefit-item {
    color: #e2e8f0;
}

body.dark-mode .benefits-list.free .benefit-item i {
    color: #4ade80;
}

body.dark-mode .benefits-list.premium .benefit-item i {
    color: #4fc3f7;
}

body.dark-mode .benefits-meta {
    color: #64748b;
    border-top-color: #475569;
}

body.dark-mode .register-alert-error {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
}

body.dark-mode .register-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

body.dark-mode .register-alert-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

body.dark-mode .register-payment-notice {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

body.dark-mode .register-payment-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

body.dark-mode .register-input-with-icon i {
    color: #64748b;
}

body.dark-mode .register-form-label {
    color: #e2e8f0;
}

body.dark-mode .register-form-input {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

body.dark-mode .register-form-input:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.15);
}

body.dark-mode .register-form-input::placeholder {
    color: #64748b;
}

body.dark-mode .register-form-input:disabled {
    background: #1e293b;
}

body.dark-mode .register-password-toggle {
    color: #94a3b8;
}

body.dark-mode .register-password-toggle:hover {
    color: #f1f5f9;
}

body.dark-mode .register-terms {
    color: #94a3b8;
}

body.dark-mode .register-terms a {
    color: #4fc3f7;
}

body.dark-mode .register-submit-button.free {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

body.dark-mode .register-submit-button.premium {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

body.dark-mode .register-back-button {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

body.dark-mode .register-back-button:hover:not(:disabled) {
    border-color: #64748b;
    color: #f1f5f9;
}

body.dark-mode .register-signin-prompt {
    border-top-color: #334155;
}

body.dark-mode .register-signin-text {
    color: #94a3b8;
}

body.dark-mode .register-signin-link {
    color: #4fc3f7;
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */

@media (max-width: 768px) {
    .register-shell {
        padding: 5rem 1rem 1rem 1rem;
        align-items: flex-start;
    }

    .register-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .register-title {
        font-size: 1.5rem;
    }

    .register-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 1.25rem;
    }

    .register-title {
        font-size: 1.35rem;
    }

    .register-subtitle {
        font-size: 0.9rem;
    }

    .plan-toggle-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
}
