/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite ease-in-out;
}

.circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 85%;
    animation-delay: 2s;
}

.circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 15%;
    animation-delay: 4s;
}

.circle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 80%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-10px);
    }
    75% {
        transform: translateY(-10px) translateX(-20px);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Festival Header */
.fest-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

.fest-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(to right, #FF416C, #FF4B2B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.year {
    color: #4CC9F0;
}

.fest-tagline {
    font-size: 1.1rem;
    color: #a9b7d6;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Form Toggle */
.form-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #a9b7d6;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

/* Form Container */
.form-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-container.active {
    display: block;
}

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

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

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #fff;
}

.form-header p {
    color: #a9b7d6;
    font-size: 0.95rem;
}

/* Form Grid for Registration */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .full-width {
        grid-column: span 1;
    }
}

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a9b7d6;
    font-size: 1.1rem;
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #FF416C;
    box-shadow: 0 0 0 2px rgba(255, 65, 108, 0.2);
}

.input-group input::placeholder {
    color: #a9b7d6;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a9b7d6;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 1;
}

/* Password Requirements */
.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.password-requirements p {
    color: #a9b7d6;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.password-requirements ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.password-requirements li {
    font-size: 0.85rem;
    color: #ff4757;
    transition: color 0.3s ease;
}

/* Form Footer */
.form-footer {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    margin-bottom: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none !important;
}

.toggle-link {
    color: #a9b7d6;
    font-size: 0.9rem;
}

.toggle-link a {
    color: #4CC9F0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toggle-link a:hover {
    color: #FF416C;
    text-decoration: underline;
}

/* Message Box */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.message.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    display: block;
}

.message.error {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    display: block;
}

/* Success Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #16213e;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalIn 0.5s ease;
}

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

.modal-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal-content p {
    color: #a9b7d6;
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-note {
    font-size: 0.9rem;
    color: #FFB74D;
    margin-top: 15px;
}

.modal-btn {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}

/* Footer */
.footer {
    margin-top: 30px;
    text-align: center;
    color: #a9b7d6;
    font-size: 0.85rem;
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .fest-title {
        font-size: 2.5rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .password-requirements ul {
        flex-direction: column;
        gap: 8px;
    }
}