/* assets/css/style.css - Public site styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0F172A;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    flex: 1;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #4F46E5, #A855F7, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.logo p {
    font-size: 14px;
    color: #94A3B8;
    -webkit-text-fill-color: #94A3B8;
    margin: 4px 0 0 0;
}

.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.5);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.language-switcher a {
    color: #94A3B8;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.language-switcher a:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #FFFFFF;
}

.language-switcher a.active {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Registration Form */
.registration-form {
    animation: slideUp 0.6s ease-out;
}

.registration-form h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.form-subtitle {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: #E2E8F0;
}

.form-group label .required {
    color: #EF4444;
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:hover,
.form-group select:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

.form-group input::placeholder {
    color: #64748B;
}

.form-group input:disabled,
.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fee Display */
.fee-display {
    padding: 16px 20px;
    background: rgba(79, 70, 229, 0.15);
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    border-radius: 10px;
    font-size: 26px;
    font-weight: 600;
    color: #A855F7;
    text-align: center;
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.2);
    }
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(15, 23, 42, 0.3);
}

.upload-area:hover {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

.upload-area.dragover {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 48px;
    color: #4F46E5;
    margin-bottom: 12px;
    display: block;
    transition: all 0.3s ease;
}

.upload-area:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.upload-area p {
    color: #94A3B8;
    font-size: 14px;
    margin: 0;
}

.upload-area .file-types {
    color: #64748B;
    font-size: 12px;
    margin-top: 5px;
}

.upload-area .file-types strong {
    color: #94A3B8;
    font-weight: 500;
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Upload Preview */
#uploadPreview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.upload-preview-item {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    transition: all 0.3s ease;
}

.upload-preview-item:hover {
    transform: scale(1.05);
    border-color: rgba(79, 70, 229, 0.3);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .file-icon {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #A855F7;
    background: rgba(15, 23, 42, 0.5);
}

.upload-preview-item .file-icon small {
    font-size: 10px;
    color: #94A3B8;
    margin-top: 4px;
}

.upload-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-item .remove-file:hover {
    background: #EF4444;
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Success Page */
.success-page {
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.success-page .success-icon {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.8s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-page h2 {
    font-size: 26px;
    margin: 20px 0 15px;
    color: #10B981;
}

.success-page .success-message {
    color: #94A3B8;
    font-size: 16px;
    margin-bottom: 25px;
}

.success-page .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

.success-page .details-grid .detail-item {
    padding: 10px 15px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.success-page .details-grid .detail-item label {
    display: block;
    font-size: 11px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.success-page .details-grid .detail-item span {
    font-size: 15px;
    font-weight: 500;
    color: #E2E8F0;
}

.success-page .btn-primary {
    margin-top: 25px;
    width: auto;
    min-width: 200px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #4F46E5;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .language-switcher {
        margin: 0 auto;
    }
    
    .glass {
        padding: 25px 20px;
    }
    
    .registration-form h2 {
        font-size: 22px;
        text-align: center;
    }
    
    .form-subtitle {
        text-align: center;
    }
    
    .fee-display {
        font-size: 22px;
        padding: 14px 16px;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .upload-area i {
        font-size: 36px;
    }
    
    .success-page .details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .success-page h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .glass {
        padding: 18px 15px;
        border-radius: 15px;
    }
    
    .logo h1 {
        font-size: 19px;
    }
    
    .logo p {
        font-size: 12px;
    }
    
    .language-switcher a {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .registration-form h2 {
        font-size: 19px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .fee-display {
        font-size: 19px;
        padding: 12px 14px;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .upload-area {
        padding: 20px 15px;
    }
    
    .upload-area i {
        font-size: 30px;
    }
    
    .upload-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .success-page .success-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-page h2 {
        font-size: 19px;
    }
}

/* Dark Mode Enhancements */
::selection {
    background: rgba(79, 70, 229, 0.3);
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.6);
}

/* Print Styles */
@media print {
    .language-switcher,
    .btn-primary {
        display: none !important;
    }
    
    .glass {
        background: #1E293B !important;
        box-shadow: none !important;
        border: 1px solid #334155 !important;
    }
    
    body {
        background: #0F172A !important;
        padding: 0 !important;
    }
}