﻿*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #0a1628;
    --blue-mid: #0f3460;
    --blue-brand: #1E4FA5;
    --cyan: #53BCD5;
    --cyan-dim: rgba(83, 188, 213, 0.5);
    --white-05: rgba(255,255,255,0.05);
    --white-07: rgba(255,255,255,0.07);
    --white-10: rgba(255,255,255,0.10);
    --white-15: rgba(255,255,255,0.15);
    --white-25: rgba(255,255,255,0.25);
    --white-45: rgba(255,255,255,0.45);
    --white-60: rgba(255,255,255,0.60);
    --white-90: rgba(255,255,255,0.90);
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(135deg, #0a1628 0%, #0d2347 35%, #0f3460 60%, #1a5276 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(83,188,213,0.18) 0%, transparent 65%);
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30,79,165,0.28) 0%, transparent 65%);
    bottom: -120px;
    left: -80px;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(83,188,213,0.10) 0%, transparent 65%);
    bottom: 80px;
    right: 100px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
    background-size: 52px 52px;
}

.login-wrapper {
    width: 100%;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.glass-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--white-15);
    border-radius: 24px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.45), 0 0 0 1px var(--white-05) inset, 0 1px 0 var(--white-25) inset;
    overflow: hidden;
}

.card-accent-bar {
    height: 3px;
    background: linear-gradient(90deg, #53BCD5, #1E4FA5, #53BCD5);
    background-size: 200% 100%;
}

.card-inner {
    padding: 2.25rem 2.25rem 2rem;
}

.brand-section {
    text-align: center;
    margin-bottom: 1.75rem;
}
.logo-img {
    height: 80px;
    display: block;
    margin: 0 auto;
    filter: brightness(1.15) saturate(1.2); 
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-15), transparent);
    margin: 0 0 1.75rem;
}


.field-group {
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
    transition: all 0.2s;
}

    .input-wrap.focused::after {
        opacity: 1;
    }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    color: #000
}

.input-wrap.focused .input-icon {
    opacity: 0.8;
}

.fancy-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    -webkit-appearance: none;
}

    .fancy-input::placeholder {
        color: rgba(0,0,0,0.8);
    }

.pass-input {
    padding-right: 44px;
}

.eye-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    height: 100%;
    width: 10%;
}

.val-msg {
    display: block;
    color: rgba(251,191,36,0.85);
    font-size: 11px;
    margin-top: 6px;
    padding-left: 2px;
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--white-45);
    cursor: pointer;
    user-select: none;
}

.hidden-check {
    display: none;
}

.custom-check {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1px solid var(--white-25);
    background: var(--white-07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.hidden-check:checked + .custom-check {
    background: rgba(83,188,213,0.25);
    border-color: rgba(83,188,213,0.7);
}

.forgot-link {
    font-size: 12px;
    color: rgba(83,188,213,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #53BCD5;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #185FA5 0%, #1E4FA5 50%, #2563c0 100%);
    border: 1px solid rgba(83,188,213,0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(30,79,165,0.55), 0 1px 0 var(--white-15) inset;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

    .btn-login::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
        transition: left 0.55s ease;
    }

    .btn-login:hover::after {
        left: 100%;
    }

    .btn-login:hover {
        background: linear-gradient(135deg, #1E4FA5 0%, #2563c0 60%, #3b82d6 100%);
        box-shadow: 0 6px 30px rgba(30,79,165,0.7), 0 0 20px rgba(83,188,213,0.18);
        transform: translateY(-1px);
    }

    .btn-login:active {
        transform: translateY(0) scale(0.99);
    }

.secure-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 1.25rem;
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.3px;
}

.secure-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(83,188,213,0.5);
    box-shadow: 0 0 6px rgba(83,188,213,0.4);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .card-inner {
        padding: 2rem 1.5rem 1.75rem;
    }

    .brand-ring {
        width: 60px;
        height: 60px;
    }

        .brand-ring svg {
            width: 30px;
            height: 30px;
        }

    .logo-img {
        max-width: 140px;
    }
}
