
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --heading-font: 'Nunito', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --accent-font: 'Montserrat', sans-serif;
}

.main-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side Image Section */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #000000, #a24aa3);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 400px;
    padding: 40px;
}

.left-content h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.left-content p {
    font-family: var(--body-font);
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.coding-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-list i {
    margin-right: 10px;
    color: #FFD700;
}

/* Right Side Form Section */
.right-section {
    flex: 1;
    background: white;
    overflow-y: auto;
}

.form-container {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.form-header h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: #a24aa3;
    margin-bottom: 10px;
}

.form-header p {
    font-family: var(--body-font);
    color: #666;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #a24aa3;
    font-size: 0.95rem;
    font-family: var(--body-font);
}

.form-input, .form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    font-family: var(--body-font);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #a24aa3;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(162, 74, 163, 0.1);
}

.submit-btn {
    display: inline-block;
    background: linear-gradient(45deg, #a24aa3, #000000);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--accent-font);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.submit-container {
    text-align: center;
    margin-top: 30px;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #000000, #a24aa3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(162, 74, 163, 0.3);
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float-around 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 70%;
    right: 10%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

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

@keyframes float-around {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Footer Section */
footer {
    background-color: #000000;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

footer h3 {
    font-family: var(--heading-font);
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

footer h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background: #a24aa3;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

footer ul li i {
    margin-right: 10px;
    color: #a24aa3;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #a24aa3;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1147px) {
    .logo img {
        height: 60px;
    }

    .logo .brand-name {
        font-size: 1.4rem;
    }

    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        font-size: 0.95rem;
    }
}

/* 1139px Breakpoint */
@media (max-width: 1139px) {
    .logo img {
        height: 55px;
    }

    .logo .brand-name {
        font-size: 1.3rem;
    }

    nav ul li {
        margin-left: 15px;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    header .container {
        padding: 0 15px;
    }
}

/* 820px Breakpoint */
@media (max-width: 823px) {
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: #ffffff;
        overflow: hidden;
        transition: height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 999;
    }

    header nav.active {
        display: block;
        height: 100vh;
        opacity: 1;
        padding: 80px 20px 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 15px 0;
    }

    header nav ul li a {
        font-size: 1.2rem;
        color: #a24aa3;
    }

    .logo img {
        height: 50px;
    }

    .logo .brand-name {
        font-size: 1.2rem;
    }

    header .container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 45px;
    }

    .logo .brand-name {
        font-size: 1.1rem;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    /* Mobile Responsive for Registration Form */
    .main-container {
        flex-direction: column;
    }

    .left-section {
        display: none;
    }

    .right-section {
        flex: 1;
    }

    .form-container {
        padding: 30px 20px;
        max-width: 100%;
        margin: 20px;
        box-shadow: none;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group {
        min-width: 100%;
    }

    .form-input, .form-select {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 25px 15px;
        margin: 15px;
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

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

    .form-label {
        font-size: 0.9rem;
    }

    .form-input, .form-select {
        padding: 10px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .success-message, .error-message {
        padding: 12px;
        font-size: 0.9rem;
    }
}