
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #2c2c2c, #4a4a4a);
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 400px;
    background: #333;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.input-group {
    position: relative;
    margin-bottom: 60px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    color: #fff;
    font-size: 1em;
    transition: 0.5s;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    transition: 0.5s;
}

.input-group input:focus,
.input-group input:valid {
    border-bottom: 2px solid #00a3ff;
    outline: none;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -5px;
    font-size: 0.8em;
    color: #00a3ff;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00a3ff;
    transition: 0.5s;
}

.input-group input:focus ~ .underline,
.input-group input:valid ~ .underline {
    width: 100%;
}

.login-button {
    width: 100%;
    padding: 15px;
    background: #00a3ff;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.5s;
    transform: scale(1);
}

.login-button:hover {
    background: #0088cc;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 163, 255, 0.4);
}

.additional-links {
    margin-top: 25px;
    text-align: center;
    color: #888;
}

.additional-links a {
    color: #00a3ff;
    text-decoration: none;
    transition: 0.3s;
}

.additional-links a:hover {
    color: #0088cc;
    text-decoration: underline;
}

.form-errors {
    color: #ff6b6b;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
    animation: slideIn 0.3s ease-out;
}

.field-errors {
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 100%;
    font-size: 0.85em;
    color: #ff6b6b;
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.input-group input:invalid {
    border-bottom: 2px solid #ff6b6b !important;
}

.input-group input:invalid ~ label {
    color: #ff6b6b !important;
}