@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Inter:wght@300..700&display=swap");

body {
    background-color: #050510;
    background-image: url('/public/login_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #e8ecf4;
    font-family: "Space Grotesk", "Inter", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

/* Dark overlay for background image readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, rgba(5, 5, 16, 0.3) 0%, rgba(5, 5, 16, 0.65) 100%);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.login-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 650px;
    height: 650px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.06),
        0 0 60px rgba(0, 240, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 3rem;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25), 0 0 40px rgba(0, 240, 255, 0.1);
    object-fit: cover;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.3));
}

h2 {
    margin-bottom: 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #00f0ff, #b347d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.input-group {
    margin-bottom: 0.75rem;
    text-align: left;
    width: 100%;
    max-width: 340px;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(232, 236, 244, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 0.625rem;
    background-color: rgba(10, 14, 26, 0.8);
    color: #e8ecf4;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), 0 0 30px rgba(0, 240, 255, 0.05);
    background-color: rgba(15, 20, 40, 0.9);
}

.input-group input::placeholder {
    color: rgba(232, 236, 244, 0.3);
}

button {
    width: 100%;
    max-width: 340px;
    padding: 0.7rem;
    border: none;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #00f0ff, #00c4cc);
    color: #050510;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.25rem;
}

button:hover {
    background: linear-gradient(135deg, #33f5ff, #00f0ff);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.error {
    color: #ff2d7b;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    max-width: 340px;
}

/* Selection color */
::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #e8ecf4;
}

/* Responsive: smaller circle on mobile */
@media (max-width: 560px) {
    .login-form {
        width: 90vmin;
        height: 90vmin;
        padding: 1.5rem;
    }
    .input-group {
        max-width: 200px;
    }
    .input-group input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    button {
        max-width: 200px;
        padding: 0.6rem;
    }
    .logo {
        width: 60px;
        height: 60px;
    }
    h2 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .input-group {
        margin-bottom: 0.5rem;
    }
    .input-group label {
        font-size: 0.7rem;
    }
}
