body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0f172a;
    font-family: Arial, sans-serif;
}

.input-box {
    position: relative;
    width: 280px;
}

.input-box input {
    width: 100%;
    padding: 16px 14px;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 2px solid #475569;
    border-radius: 8px;
    outline: none;
    transition: 0.3s ease;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: 0.3s ease;
    background: #0f172a;
    padding: 13px 6px;
}

.input-box input:focus+label,
.input-box input:not(:placeholder-shown)+label {
    top: 1px;
    font-size: 12px;
    color: #38bdf8;
}

.input-box input:focus {
    border-color: #38bdf8;
}