* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    padding: 20px;
}

.login-card {
    max-width: 380px;
    margin: auto;
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h1 {
    margin: 0;
    color: #203a43;
    font-size: 28px;
    font-weight: 700;
}

.login-header p {
    margin-top: 6px;
    color: #777;
    font-size: 14px;
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    background: transparent;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    background: #fff;
    padding: 0 6px;
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -6px;
    font-size: 12px;
    color: #203a43;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #203a43;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #2c5364;
}

.error-message {
    background: #ffe6e6;
    color: #c0392b;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #aaa;
}

/* 📱 Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 26px 20px;
    }
}
