@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #41d3ff, #ffea8d);
}

.login-container {
    width: 360px;
    background: rgb(185, 164, 233);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 40px 35px;
}

.login-box h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px;
    font-size: 16px;
    color: #161616;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #ddd;
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 12px;
    color: #fff;
}

.input-group input:focus {
    border-bottom-color: #fff;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #6b73ff, #000dff);
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #4c51bf);
}

.error-msg {
    color: #fff;
    background: rgba(255, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
}
