*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #0a0f1e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- Animated background ---- */
.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, #0d2137 0%, #0a0f1e 60%),
                radial-gradient(ellipse at 80% 20%, #071a2e 0%, transparent 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 12s ease-in-out infinite;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #1a5276, #0d2137);
    top: -120px; left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0e6655, #0a3d2e);
    bottom: -100px; right: -80px;
    animation-delay: 4s;
}

.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #1a3a6b, #0d1f47);
    top: 50%; left: 55%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -30px) scale(1.05); }
    66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Card ---- */
.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Logo icon ---- */
.logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #1e6091, #1a8a6a);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: 0 8px 24px rgba(30, 96, 145, 0.4);
}

.logo-icon svg {
    width: 28px; height: 28px;
    color: #fff;
}

/* ---- Headings ---- */
.login-title {
    font-size: 26px;
    font-weight: 700;
    color: #f0f4f8;
    text-align: center;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(180, 200, 220, 0.6);
    text-align: center;
    margin-bottom: 36px;
}

/* ---- Form fields ---- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: rgba(180, 200, 220, 0.45);
    pointer-events: none;
    transition: color 0.2s;
}

.field-wrap:focus-within .field-icon {
    color: #3fa8e0;
}

.field-wrap input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e8f0f7;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field-wrap input::placeholder {
    color: rgba(180, 200, 220, 0.35);
}

.field-wrap input:focus {
    border-color: rgba(63, 168, 224, 0.5);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(63, 168, 224, 0.12);
}

/* ---- Error ---- */
.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 60, 60, 0.12);
    border: 1px solid rgba(220, 60, 60, 0.25);
    border-radius: 10px;
    padding: 11px 14px;
    color: #f48585;
    font-size: 13.5px;
    font-weight: 500;
    animation: shake 0.4s ease;
}

.error-msg svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ---- Button ---- */
.btn-login {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a6fa8, #1a8a6a);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    box-shadow: 0 6px 24px rgba(26, 111, 168, 0.35);
}

.btn-login svg {
    width: 18px; height: 18px;
    transition: transform 0.18s;
}

.btn-login:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(26, 111, 168, 0.45);
}

.btn-login:hover svg {
    transform: translateX(4px);
}

.btn-login:active {
    transform: translateY(0);
    filter: brightness(0.95);
}
