/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --error-color: #ef4444;
    --success-color: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.coming-soon-page {
    overflow-y: hidden;
    height: 100vh;
}

/* Animated Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.stars {
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.7"/><circle cx="60" cy="10" r="1" fill="white" opacity="0.5"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.9"/><circle cx="90" cy="90" r="1" fill="white" opacity="0.4"/><circle cx="30" cy="30" r="1" fill="white" opacity="0.6"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.8"/></svg>') repeat;
    background-size: 200px 200px;
}

.twinkling {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="20" cy="20" r="1.5" fill="white" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.2"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.4"/><circle cx="60" cy="10" r="1.5" fill="white" opacity="0.1"/></svg>') repeat;
    background-size: 300px 300px;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.register-page .container {
    padding: 0.5rem 1rem;
}

.success-page .container {
    padding: 1rem;
}

/* Coming Soon Page */
.coming-soon-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.content-wrapper {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.highlight {
    background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    color: white;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    animation: bounce 2s infinite;
}

.feature-item:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-button {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.6);
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}

.cta-container {
    margin-bottom: 0;
}

.countdown-container {
    display: none !important;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Register Page */
.register-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    overflow-y: auto;
    height: 100vh;
}

.back-button-container {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-small {
    margin-bottom: 0.5rem;
}

.logo-small img {
    max-width: 80px;
    height: auto;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--error-color);
}

.optional {
    color: var(--text-secondary);
    font-weight: 400;
}

.form-input {
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.7rem;
    min-height: 0.875rem;
    display: block;
}

.submit-button {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-button.loading .button-text {
    opacity: 0;
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Page */
.success-page {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    overflow-y: auto;
    height: 100vh;
}

.success-container {
    text-align: center;
    max-width: 700px;
    width: 100%;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.checkmark {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: var(--success-color);
    stroke-width: 2;
    stroke-miterlimit: 10;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.details-card {
    background: #f9fafb;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.details-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.action-button.primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.action-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.action-button.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-button.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-in 1.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-up-delay {
    animation: slideUp 0.8s ease-out 0.4s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        margin-bottom: 0.75rem;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .main-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .features {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-item p {
        font-size: 0.75rem;
    }
    
    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.25rem 1rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .form-header {
        margin-bottom: 0.75rem;
    }
    
    .logo-small img {
        max-width: 70px;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .form-subtitle {
        font-size: 0.7rem;
    }
    
    .registration-form {
        gap: 0.75rem;
    }
    
    .form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .submit-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }
    
    .back-button-container {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .back-button {
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .success-container {
        padding: 2rem 1.5rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .features {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    .feature-item p {
        font-size: 0.7rem;
    }
    
    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1rem 0.875rem;
        max-height: calc(100vh - 0.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .form-header {
        margin-bottom: 0.5rem;
    }
    
    .logo-small img {
        max-width: 60px;
    }
    
    .form-title {
        font-size: 1.125rem;
    }
    
    .form-subtitle {
        font-size: 0.65rem;
    }
    
    .registration-form {
        gap: 0.625rem;
    }
    
    .form-group {
        gap: 0.2rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .submit-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .register-page .container {
        padding: 0.25rem 0.5rem;
    }
    
    .success-container {
        padding: 1.5rem 1rem;
        max-height: calc(100vh - 0.5rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-message {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .details-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .details-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .details-grid {
        gap: 1rem;
    }
}
