* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f9f6ff 0%, #eae2f8 50%, #ffffff 100%);
    color: #333;
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Subtle texture */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(90,45,130,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Animated gradient overlay */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(90,45,130,0.05), rgba(255,255,255,0.1));
    animation: moveGradient 12s ease-in-out infinite alternate;
    z-index: -2;
    pointer-events: none;
}

/* Vignette effect */
body::selection {
    background: #5a2d82;
    color: #fff;
}

@keyframes moveGradient {
    from { transform: translateX(-10%) translateY(-10%); }
    to   { transform: translateX(10%) translateY(10%); }
}

/* Main container with two columns */
.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 0 5%;
}

.left-section {
    flex: 1;
    padding: 40px;
    margin-left: 100px;
    margin-bottom: 200px;
    background: rgba(90, 45, 130, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    transform: translateX(-150px); /* moves logo 20px to the right */
}




.tagline {
    font-size: 1.3rem;
    color: #333;
    max-width: 550px;
    margin-bottom: 10px;
}

.left-section .tagline:last-of-type {
    margin-bottom: 0;
}

/* Right side */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* Login/Register Box */
.login-box {
    background: linear-gradient(145deg, #ffffff, #f7f3ff);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(90, 45, 130, 0.15);
    width: 100%;
    max-width: 380px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative glow */
.login-box::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, 
        rgba(90,45,130,0.15), 
        rgba(255,255,255,0.05),
        rgba(90,45,130,0.15));
    animation: spin 12s linear infinite;
    z-index: -1;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Buttons */
.login-box .button {
    display: block;
    background: #5a2d82;
    color: #fff;
    font-size: 1.1em;
    padding: 14px;
    border-radius: 8px;
    margin: 14px 0;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(90, 45, 130, 0.25);
}
.login-box .button:hover {
    background: #3d1a63;
    transform: translateY(-2px);
}

/* Register button with fresh accent */
.login-box a:nth-child(2) {
    background: #42b72a;
    box-shadow: 0 4px 10px rgba(66, 183, 42, 0.25);
}
.login-box a:nth-child(2):hover {
    background: #36a420;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 20px 10px;
        height: auto;
    }

    .left-section, 
    .right-section {
        flex: unset;
        width: 100%;
        max-width: 450px;
        margin: 0 auto 20px auto;
        padding: 20px;
    }

    .left-section {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .login-box {
        max-width: 100%;
        padding: 25px 20px;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* Extra small devices */
@media (max-width: 500px) {
    .left-section, 
    .right-section {
        padding: 15px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .login-box {
        padding: 20px 15px;
    }

    .login-box .button {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Contact link */
.contact-link {
    margin-top: 15px;
}
.contact-link a {
    color: #5a2d82;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    color: #5a2d82;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to   {opacity: 1; transform: scale(1);}
}
