/* Registration Form Specific Styles */

/* Navigation */
.nav {
    margin: 20px 0;
    padding: 0 20px;
    text-align: center;
}

.nav-link {
    color: #667eea;
    text-decoration: none;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(102, 126, 234, 0.1);
    display: inline-block;
}

.nav-link:hover {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Header Styling */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.logo-section {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.main-title {
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Registration Main */
.registration-main {
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Messages */
.success-message, .error-message {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.success-message {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.error-message {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.success-message h3, .error-message h3 {
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Registration Form */
.registration-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.registration-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.registration-form::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

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

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 35px;
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-section h3::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;
}

.form-section h3:hover::before {
    left: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.2), inset 0 3px 6px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    position: relative;
    padding-left: 35px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checkbox-label:hover input ~ .checkmark {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.checkbox-label input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* CTA Button for Success Message */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-family: 'Segma', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button::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;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Additional Animations and Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.registration-form {
    animation: fadeInUp 0.6s ease-out;
}

.form-section {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

.form-group {
    position: relative;
}

.form-group label {
    position: relative;
    z-index: 1;
}

/* Floating label effect for better UX */
.form-group input:focus + label,
.form-group select:focus + label,
.form-group textarea:focus + label {
    color: #667eea;
    transform: translateY(-2px);
}

/* Success state for form fields */
.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #4CAF50;
}

/* Error state for form fields */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #f44336;
    animation: pulse 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-main {
        padding: 0 10px;
    }
    
    .registration-form {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
        padding: 12px 20px;
    }
    
    .submit-button {
        padding: 15px 45px;
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .registration-form {
        padding: 20px 15px;
    }
    
    .form-section {
        margin-bottom: 30px;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .submit-button {
        padding: 10px 30px;
        font-size: 1rem;
    }
}
