@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 25%, #1a4d7a 50%, #0d2847 75%, #0a1628 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1400px;
    width: 100%;
}

.logo {
    position: absolute;
    top: 40px;
    left: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    z-index: 100;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    line-height: 1;
}

.logo-text small {
    font-family: 'Exo 2', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    margin-top: 4px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    text-transform: uppercase;
}

.brain-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.brain-animation {
    position: relative;
    width: 500px;
    height: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Main Brain/Logo Styling */
.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    /* Reduced from 250px */
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.central-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures it fills the circle */
    border-radius: 50%;
    /* Forces circle shape */
    opacity: 0.85;
    /* Semi-transparent */
    mix-blend-mode: screen;
    /* Blends dark parts into space */
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    animation: galaxyPulse 4s infinite ease-in-out;
}

@keyframes galaxyPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.9));
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
}

.orbit-2 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 460px;
    height: 460px;
    margin: -230px 0 0 -230px;
    animation-duration: 25s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.floating-shape {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 150, 255, 0.1));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #00ffff;
    font-size: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    animation: floatShape 8s ease-in-out infinite;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, -20px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}


.shape-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    top: 70%;
    left: 10%;
    animation-delay: 1s;
}

.shape-3 {
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.shape-4 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.shape-5 {
    top: 40%;
    left: 5%;
    animation-delay: 0.5s;
}

.shape-6 {
    top: 25%;
    right: 8%;
    animation-delay: 2.5s;
}

.login-container {
    flex: 0 0 450px;
    background: rgba(255, 255, 255, 0.12);
    /* Increased opacity for lighter look */
    backdrop-filter: blur(25px);
    /* Increased blur for better 'glass' effect */
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 60px rgba(0, 255, 255, 0.05),
        0 0 80px rgba(0, 150, 255, 0.15);
    border: none;
    /* Removed static border for animated one */
    position: relative;
    /* For pseudo-element absolute positioning */
}

/* Rotating Border Animation */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    /* Border thickness */
    background: conic-gradient(from var(--angle), transparent 0%, #00ffff 50%, transparent 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 25px;
    /* Reduced margin */
}

.form-control {
    width: 100%;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* IMPORTANT */
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* HEMIS Button */
.hemis-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00ffff, #00bfff);
    border: none;
    border-radius: 15px;
    color: #0a1628;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.hemis-btn:hover {
    background: linear-gradient(135deg, #00bfff, #00ffff);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

.hemis-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.hemis-btn:hover .hemis-icon {
    transform: scale(1.1) rotate(5deg);
}

.divider {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    color: #00ffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-login:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-links {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    font-size: 14px;
}

.form-links a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.form-links a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.6), transparent);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        gap: 50px;
    }

    .brain-animation {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .brain-container {
        order: 1;
    }

    .login-container {
        order: 2;
        flex: 0 0 auto;
        max-width: 450px;
    }

    .brain-animation {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .logo {
        top: 20px;
        left: 20px;
        font-size: 18px;
    }

    .login-container {
        padding: 40px 30px;
        width: 100%;
    }

    .brain-animation {
        width: 250px;
        height: 250px;
    }
}