/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #020617);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
}

/* WRAPPER */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* CARD */
.login-card {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 36px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 6px;
}

/* FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* FLOATING LABEL */
.field {
    position: relative;
}

.field input {
    width: 100%;
    padding: 14px 14px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: 0.2s ease;
    background: #020617;
    padding: 0 6px;
}

.field input:focus,
.field input:valid {
    border-color: #3b82f6;
}

.field input:focus+label,
.field input:valid+label {
    top: -8px;
    font-size: 12px;
    color: #60a5fa;
}

/* BUTTON */
.btn-login {
    margin-top: 10px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

/* ERROR */
.error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

/* FOOTER */
.login-footer {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 28px;
}

