@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0a1120 0%, #1a2a3a 100%);
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 180, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 100, 255, 0.05) 0%, transparent 50%);
    animation: slowDrift 30s infinite alternate;
    z-index: 0;
}

@keyframes slowDrift {
    0% { transform: translate(-5%, -5%) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(3deg); }
}

.login-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(20, 30, 45, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.2) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 160, 255, 0.3), 0 0 0 1px rgba(0, 212, 255, 0.4) inset;
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: inline-block;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0b63b8 0%, #5fc3f0 70%, #a0d9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 160, 255, 0.3);
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.logo-sub {
    color: #9aa9b9;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    margin-top: 8px;
}

.error-message {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 24px;
    color: #fecaca;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(4px);
}

.error-message::before {
    content: '⚠️';
    font-size: 16px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b4c5d9;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #4b6a8b;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.2s;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(10, 18, 30, 0.6);
    border: 1.5px solid rgba(95, 175, 240, 0.2);
    border-radius: 24px;
    font-size: 15px;
    color: #f0f6fc;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
    border-color: #3b9eff;
    background: rgba(10, 18, 30, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 158, 255, 0.2), 0 4px 12px rgba(0, 100, 255, 0.3);
}

.form-group input:focus + .input-icon {
    color: #5fc3f0;
}

.form-group input::placeholder {
    color: #5f748f;
    font-weight: 400;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(105deg, #0a5c9e 0%, #2095d0 60%, #6dc3f0 100%);
    border: none;
    border-radius: 32px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: white;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 18px -6px rgba(0, 150, 255, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transition: all 0.25s ease;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(30deg);
    transition: 0.5s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -8px #0b63b8, 0 0 0 1px rgba(255,255,255,0.3) inset;
}

.login-btn:hover::after {
    left: 50%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px -4px #0b63b8;
}

.footer {
    text-align: center;
    margin-top: 32px;
    color: #5d748f;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
}

.footer span {
    color: #7fa9c9;
}

/* subtle floating icons */
.icon-email::before { content: '✉️'; }
.icon-lock::before { content: '🔒'; }