@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Fredoka:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: "Baloo 2", sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(130, 50, 255, 0.2), transparent 35%),
        radial-gradient(circle at bottom right, rgba(255, 50, 180, 0.15), transparent 35%),
        #08070d;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 460px;
    padding: 42px 35px;
    background: linear-gradient(145deg, rgba(28, 20, 43, 0.97), rgba(13, 11, 20, 0.98));
    border: 1px solid rgba(174, 90, 255, 0.45);
    border-radius: 24px;
    box-shadow: 0 0 25px rgba(133, 55, 255, 0.15), 0 0 70px rgba(133, 55, 255, 0.08);
    backdrop-filter: blur(15px);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area h1 {
    font-family: "Fredoka", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #d49cff, #ff82d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-area p {
    margin-top: 3px;
    color: #a9a1b8;
    font-size: 1rem;
}

h2 {
    margin-bottom: 24px;
    text-align: center;
    font-family: "Fredoka", sans-serif;
    font-size: 1.7rem;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;
    color: #ddd5e8;
    font-size: 1rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(174, 90, 255, 0.25);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.2s ease;
}

.input-group input::placeholder {
    color: #746c81;
}

.input-group input:focus {
    border-color: #b96cff;
    box-shadow: 0 0 0 3px rgba(185, 108, 255, 0.1), 0 0 15px rgba(185, 108, 255, 0.1);
}

.main-button {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #7b32e8, #a948ff);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 50, 255, 0.3);
}

.main-button:active {
    transform: translateY(0);
}

.switch-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: #91899e;
    font-size: 0.95rem;
}

.switch-button {
    padding: 0;
    border: none;
    background: none;
    color: #c27bff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.switch-button:hover {
    color: #dfb1ff;
}

.message {
    min-height: 24px;
    margin-top: 12px;
    text-align: center;
    color: #cfa8ff;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

@media (max-width: 520px) {
    body {
        padding: 15px;
    }

    .login-box {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .logo-area h1 {
        font-size: 1.65rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .switch-area {
        flex-direction: column;
        gap: 0;
    }
}


.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    cursor: pointer;
    font-size: 20px;
    padding: 4px;

    z-index: 2;
}

.password-toggle:hover {
    opacity: 0.7;
}