body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #1a1a2e; /* Dark blue/purple background */
    color: #e0e0e0; /* Light grey text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Hide overflowing animation elements */
}

.login-container {
    position: relative;
    z-index: 2;
}

.login-box {
    background-color: #23233c; /* Slightly lighter dark shade for the box */
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 380px;
    border: 1px solid #3a3a5a;
    position: relative;
    overflow: hidden; /* For inner pseudo-elements if needed */
}

.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(76, 76, 255, 0.1),
        transparent 30%
    );
    animation: rotate-glow 10s linear infinite;
    z-index: -1;
}

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

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

.logo-svg {
    width: 32px;
    height: 32px;
    color: #4a4aff; /* Accent color */
}

.login-box h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 14px;
    color: #a0a0c0;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 15px;
    background-color: #1f1f35;
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #4a4aff; /* Accent color for focus */
    box-shadow: 0 0 0 3px rgba(74, 74, 255, 0.3);
    outline: none;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0c0;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #1f1f35; /* Match input bg for label pseudo-bg */
    padding: 0 5px;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #4a4aff; /* Accent color when floated */
}

.login-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(90deg, #4a4aff, #7a7aff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(74, 74, 255, 0.3);
}

.login-button:hover {
    background: linear-gradient(90deg, #3a3ad8, #6a6ad8);
    box-shadow: 0 8px 20px rgba(74, 74, 255, 0.5);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(74, 74, 255, 0.2);
}

.login-button .arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.login-button:hover .arrow-icon {
    transform: translateX(5px);
}

.error-message {
    color: #ff4d4d; /* Red for error messages */
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 14px;
    display: none; /* Hidden by default, shown by JS */
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    text-align: left;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #a0a0c0;
    user-select: none;
    position: relative;
}

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

.checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    background-color: #1f1f35;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-label:hover .checkmark {
    border-color: #4a4aff;
}

.remember-label input:checked ~ .checkmark {
    background-color: #4a4aff;
    border-color: #4a4aff;
    box-shadow: 0 0 0 3px rgba(74, 74, 255, 0.2);
}

.remember-label input:checked ~ .checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.footer-text {
    margin-top: 30px;
    font-size: 12px;
    color: #707090;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.background-animation .circle {
    position: absolute;
    background-color: rgba(74, 74, 255, 0.05); /* Very subtle accent color */
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.background-animation .circle:nth-child(1) {
    width: 200px; height: 200px;
    left: 10%; top: 15%;
    animation-duration: 22s;
    animation-delay: 0s;
}
.background-animation .circle:nth-child(2) {
    width: 150px; height: 150px;
    left: 70%; top: 25%;
    animation-duration: 25s;
    animation-delay: -5s;
}
.background-animation .circle:nth-child(3) {
    width: 100px; height: 100px;
    left: 30%; top: 70%;
    animation-duration: 18s;
    animation-delay: -10s;
}
.background-animation .circle:nth-child(4) {
    width: 250px; height: 250px;
    left: 80%; top: 60%;
    animation-duration: 28s;
    animation-delay: -15s;
}
.background-animation .circle:nth-child(5) {
    width: 120px; height: 120px;
    left: 5%; top: 80%;
    animation-duration: 20s;
    animation-delay: -20s;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    25% { transform: translateY(-20px) translateX(15px) scale(1.05); }
    50% { transform: translateY(10px) translateX(-10px) scale(0.95); }
    75% { transform: translateY(-15px) translateX(20px) scale(1.02); }
    100% { transform: translateY(0px) translateX(0px) scale(1); }
} 