/* Register Page Styles */
.register-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.register-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 5%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Header */
.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.brand-logo i {
    font-size: 28px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.auth-link {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Content */
.register-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Register Card */
.register-card,
.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Progress Steps */
.register-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 3px solid var(--chart-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.step.active .step-icon {
    background: var(--theme-default);
    border-color: var(--theme-default);
    color: white;
}

.step.completed .step-icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.step.active .step-label {
    color: var(--theme-default);
    font-weight: 600;
}

.step-line {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 200px;
    height: 3px;
    background: var(--chart-border);
    transform: translateX(-50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--success-color);
}

/* Form Steps */
.form-step {
    animation: slideIn 0.5s ease-out;
}

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

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 8px;
}

.step-subtitle {
    font-size: 16px;
    color: var(--text-gray);
}

/* Form Sections */
.form-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: var(--light2);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--chart-border);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Form Controls */
.form-floating {
    margin-bottom: 20px;
}

.form-control,
.form-select {
    border: 2px solid var(--chart-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-floating .form-control,
.form-floating .form-select {
    padding: 1rem 0.75rem;
}

.form-floating > label {
    font-weight: 500;
    color: var(--text-gray);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-default);
    box-shadow: 0 0 0 0.2rem rgba(122, 112, 186, 0.15);
    background: var(--white);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
}

/* Password Requirements */
.password-requirements {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    border: 1px solid var(--chart-border);
}

.password-requirements h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 12px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.requirement i {
    width: 16px;
    color: var(--danger-color);
}

.requirement.valid {
    color: var(--success-color);
}

.requirement.valid i {
    color: var(--success-color);
}

/* Password Strength */
.password-strength {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.strength-weak {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.strength-medium {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.strength-strong {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.package-card {
    background: var(--white);
    border: 2px solid var(--chart-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.package-card.popular {
    border-color: var(--theme-default);
    background: linear-gradient(135deg, rgba(122, 112, 186, 0.05), rgba(72, 163, 215, 0.05));
}

.package-card.selected {
    border-color: var(--theme-default);
    background: rgba(122, 112, 186, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-header {
    margin-bottom: 20px;
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 8px;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-center;
    gap: 4px;
}

.price {
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-default);
}

.period {
    font-size: 14px;
    color: var(--text-gray);
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--bs-heading-color);
}

.package-features i {
    font-size: 16px;
    flex-shrink: 0;
}

.package-select {
    margin-top: 20px;
}

.package-select input[type="radio"] {
    display: none;
}

.package-select-btn {
    display: block;
    padding: 12px 24px;
    background: var(--light-bg);
    border: 2px solid var(--chart-border);
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.package-select input:checked + .package-select-btn,
.package-select-btn:hover {
    background: var(--theme-default);
    border-color: var(--theme-default);
    color: white;
}

/* Terms Section */
.terms-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--chart-border);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-check-input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-check-label {
    font-size: 14px;
    color: var(--bs-heading-color);
    line-height: 1.5;
}

.form-check-label a {
    color: var(--theme-default);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--chart-border);
}

.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    color: white;
    border-color: var(--theme-default);
    box-shadow: 0 4px 12px rgba(122, 112, 186, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 112, 186, 0.4);
    color: white;
    filter: brightness(110%);
}

.btn-outline-secondary {
    background: var(--white);
    border-color: var(--chart-border);
    color: var(--text-gray);
}

.btn-outline-secondary:hover {
    background: var(--light-bg);
    color: var(--bs-heading-color);
    border-color: var(--bs-heading-color);
    transform: translateY(-1px);
}

/* Success Page */
.success-animation {
    position: relative;
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    position: relative;
    z-index: 2;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon.animate {
    transform: scale(1);
}

.success-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid #28a745;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin-bottom: 16px;
    text-align: center;
}

.success-message {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-info {
    background: rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--bs-heading-color);
}

.info-item:last-child {
    margin-bottom: 0;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.register-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 40px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--theme-default), var(--theme-secondary));
    color: white;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 32px;
}

.terms-content h6,
.privacy-content h6 {
    color: var(--bs-heading-color);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content p,
.privacy-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .register-card,
    .success-card {
        padding: 30px 24px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .register-steps {
        margin-bottom: 30px;
    }
    
    .step-line {
        width: 150px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .register-content {
        padding: 20px 10px;
    }
    
    .register-card,
    .success-card {
        margin: 10px;
        padding: 24px 20px;
    }
    
    .step-title {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-line {
        width: 100px;
        top: 20px;
    }
    
    .brand-logo {
        font-size: 20px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .success-title {
        font-size: 22px;
    }
}

/* Dark Theme Support */
[data-theme="dark"] .register-card,
[data-theme="dark"] .success-card {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .form-section {
    background: var(--light-bg);
}

[data-theme="dark"] .package-card {
    background: var(--light2);
}

[data-theme="dark"] .terms-section {
    background: var(--light2);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
    .register-header,
    .register-footer,
    .background-elements {
        display: none;
    }
    
    .register-page {
        background: white;
    }
    
    .register-card,
    .success-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-control,
    .form-select,
    .btn,
    .package-card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bg-shape,
    .success-ripple,
    .success-icon {
        animation: none;
    }
    
    .register-card,
    .success-card,
    .form-step {
        animation: none;
    }
}

/* Focus States */
.form-control:focus,
.form-select:focus,
.btn:focus,
.package-card:focus {
    outline: 2px solid var(--theme-default);
    outline-offset: 2px;
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--chart-border);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}