/* ============================================================================
   REGISTRATION MODAL STYLES
   ============================================================================
   Styles for the registration modal in index.php
   Compatible with the dark blue theme
   ============================================================================ */

/* ============================================================================
   MODAL ENHANCEMENTS
   ============================================================================ */

/* Modal Backdrop */
#registrationModal .modal-backdrop {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

/* Modal Dialog */
#registrationModal .modal-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
}

#registrationModal .modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
    display: flex;
    align-items: center;
}

/* Modal Content */
#registrationModal .modal-content {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

/* Modal Header */
#registrationModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
    position: relative;
}

#registrationModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #06b6d4, #1e40af);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Close Button */
#registrationModal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
}

#registrationModal .btn-close::before,
#registrationModal .btn-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #f8fafc;
    border-radius: 2px;
    transform-origin: center;
}

#registrationModal .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#registrationModal .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#registrationModal .btn-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    opacity: 1;
    transform: rotate(90deg);
}

#registrationModal .btn-close:focus {
    box-shadow: none;
    outline: none;
}

/* Modal Body */
#registrationModal .modal-body {
    padding: 1rem 2rem 2rem;
}

/* ============================================================================
   REGISTRATION STEPS
   ============================================================================ */

.registration-steps {
    width: 100%;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    border: 3px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.step.active .step-icon {
    background: linear-gradient(135deg, #1e40af, #06b6d4);
    border-color: #06b6d4;
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}

.step.completed .step-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
}

.step span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.step.active span {
    color: #06b6d4;
    font-weight: 700;
}

.step.completed span {
    color: #10b981;
}

/* Step Line */
.step-line {
    flex: 1;
    height: 3px;
    background: #334155;
    margin: 0 -8px;
    margin-bottom: 28px;
    max-width: 60px;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.step-line.active {
    background: linear-gradient(90deg, #1e40af, #06b6d4);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* ============================================================================
   REGISTRATION CONTENT
   ============================================================================ */

.registration-content {
    text-align: center;
}

/* Registration Icon */
.registration-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.35);
    position: relative;
    overflow: hidden;
}

.registration-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%
    );
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    50%, 100% { transform: translateX(100%) rotate(45deg); }
}

/* Modal Title */
#registrationModal .modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Price Badge */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.price-badge:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.price-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.price-content {
    text-align: left;
}

.price-content .amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #06b6d4;
    line-height: 1.2;
}

.price-content .label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   BENEFITS GRID
   ============================================================================ */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(30, 64, 175, 0.25);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(30, 64, 175, 0.25);
    border-color: rgba(30, 64, 175, 0.4);
    transform: translateX(4px);
}

.benefit-item i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.benefit-item:nth-child(2) i {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.benefit-item:nth-child(3) i {
    background: linear-gradient(135deg, #10b981, #059669);
}

.benefit-item:nth-child(4) i {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.benefit-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

/* ============================================================================
   REGISTRATION FORM
   ============================================================================ */

.registration-form {
    margin-bottom: 1.5rem;
}

/* Form Floating */
.registration-form .form-floating {
    margin-bottom: 1rem;
}

.registration-form .form-control {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #334155;
    border-radius: 12px;
    color: #f8fafc;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    height: auto;
}

.registration-form .form-control:focus {
    background: rgba(15, 23, 42, 0.95);
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    color: #f8fafc;
    outline: none;
}

.registration-form .form-control::placeholder {
    color: #64748b;
}

.registration-form .form-label {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
}

.registration-form .form-floating > .form-control:focus ~ .form-label,
.registration-form .form-floating > .form-control:not(:placeholder-shown) ~ .form-label {
    color: #06b6d4;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons .btn-accent {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
    position: relative;
    overflow: hidden;
}

.action-buttons .btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.action-buttons .btn-accent:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
}

.action-buttons .btn-accent:hover::before {
    left: 100%;
}

.action-buttons .btn-accent:active {
    transform: translateY(-1px);
}

.action-buttons .btn-outline-secondary {
    background: transparent;
    border: 2px solid #475569;
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
    transition: all 0.3s ease;
}

.action-buttons .btn-outline-secondary:hover {
    background: rgba(71, 85, 105, 0.2);
    border-color: #64748b;
    color: #e2e8f0;
    transform: translateY(-2px);
}

/* ============================================================================
   SECURITY FEATURES
   ============================================================================ */

.security-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.security-badge i {
    font-size: 0.9rem;
    color: #10b981;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Fade In Up Animation */
#registrationModal .animate__fadeInUp {
    animation: modalFadeInUp 0.5s ease-out forwards;
}

@keyframes modalFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce In Animation */
#registrationModal .animate__bounceIn {
    animation: modalBounceIn 0.8s ease-out forwards;
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Down Animation */
#registrationModal .animate__fadeInDown {
    animation: modalFadeInDown 0.5s ease-out forwards;
}

@keyframes modalFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
#registrationModal .animate__fadeInLeft {
    animation: modalFadeInLeft 0.5s ease-out forwards;
}

@keyframes modalFadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
#registrationModal .animate__fadeInRight {
    animation: modalFadeInRight 0.5s ease-out forwards;
}

@keyframes modalFadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 576px) {
    #registrationModal .modal-dialog {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }

    #registrationModal .modal-body {
        padding: 1rem 1.25rem 1.5rem;
    }

    .step-indicators {
        margin-bottom: 1.5rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step span {
        font-size: 0.65rem;
    }

    .step-line {
        max-width: 40px;
        margin-bottom: 22px;
    }

    .registration-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    #registrationModal .modal-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .price-badge {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .price-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .price-content .amount {
        font-size: 1.35rem;
    }

    .price-content .label {
        font-size: 0.7rem;
    }

    .benefits-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .benefit-item {
        padding: 0.625rem 0.75rem;
    }

    .benefit-item i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .benefit-item span {
        font-size: 0.75rem;
    }

    .action-buttons .btn-accent {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }

    .security-features {
        gap: 1rem;
    }

    .security-badge {
        font-size: 0.7rem;
    }
}

/* ============================================================================
   ACCESSIBILITY & PREFERENCES
   ============================================================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #registrationModal .animate__animated,
    #registrationModal .animate__fadeInUp,
    #registrationModal .animate__bounceIn,
    #registrationModal .animate__fadeInDown,
    #registrationModal .animate__fadeInLeft,
    #registrationModal .animate__fadeInRight,
    .registration-icon::before,
    .price-badge:hover,
    .benefit-item:hover,
    .action-buttons .btn-accent,
    .action-buttons .btn-outline-secondary,
    #registrationModal .btn-close,
    #registrationModal .modal-header::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    #registrationModal .modal-content {
        border-color: #ffffff;
    }

    .step-icon {
        border-width: 4px;
    }

    .benefit-item {
        border-width: 2px;
    }
}
