* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('images/background.webp') no-repeat center center fixed;
    background-size: cover;
}

.container {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    width: 100%;
    padding: 40px;
    background: rgba(20, 20, 20, 0.9); /* ????? ???? ??? */
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.login-box h2 {
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
    font-size: 2em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #0073e6;
    }
}

.input-box {
    position: relative;
    margin-bottom: 30px;
    transform-style: preserve-3d;
}

.input-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    outline: none;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.input-box label {
    position: absolute;
    left: 35px;
    top: 10px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-box i {
    position: absolute;
    left: 5px;
    top: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #0073e6;
    font-size: 12px;
    font-weight: 600;
    animation: labelFloat 0.3s ease;
}

@keyframes labelFloat {
    from {
        transform: translateY(0);
        opacity: 0.5;
    }
    to {
        transform: translateY(-20px);
        opacity: 1;
    }
}

.input-box input:focus ~ i,
.input-box input:valid ~ i {
    color: #0073e6;
    transform: scale(1.2);
}

.input-box input:focus,
.input-box input:valid {
    border-bottom: 2px solid #0073e6;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #0073e6, #00c6ff);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

button:hover:before {
    left: 100%;
}

button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 115, 230, 0.4);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px) rotate(-1deg); }
    75% { transform: translateX(10px) rotate(1deg); }
}

.shake {
    animation: shake 0.5s;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
}

/* ??? ??????????? input-???? ????? */
.input-box input:focus::placeholder {
    animation: placeholderWave 2s infinite;
}

@keyframes placeholderWave {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ?????? ????? ?????? ????? ????? */
.login-box:hover {
    box-shadow: 0 0 30px rgba(0, 115, 230, 0.3);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* ????????? ???????? input-???? ????? */
.input-box input:focus {
    animation: inputPulse 1s infinite;
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 230, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 115, 230, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 230, 0);
    }
}