@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

/* Reset base properties but keep header intact */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    background-color: #0d0814 !important;
    min-height: 100vh !important;
    background: linear-gradient(rgba(13, 8, 20, 0.4), rgba(13, 8, 20, 0.4)),
        url('../img/9QiNexr - Imgur.gif') no-repeat center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Wrapper that fills viewport minus the fixed header height */
.page-center {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 100px 20px 40px 20px !important; /* top offset = header height */
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

/* ── Card Container Premium ── */
.card-container {
    width: clamp(320px, 90vw, 720px) !important;
    margin: 0 !important;
    padding: clamp(30px, 6vh, 60px) clamp(20px, 5vw, 60px) !important;
    background: rgba(20, 10, 40, 0.6) !important;
    backdrop-filter: blur(35px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(220%) !important;
    border-radius: clamp(20px, 4vw, 50px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.card-container:hover {
    transform: translateY(-5px) !important;
}

.card-container h1 {
    font-size: clamp(32px, 5vw, 52px) !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: clamp(20px, 4vh, 45px) !important;
    text-align: center !important;
    letter-spacing: -2px !important;
    background: linear-gradient(135deg, #fff 20%, #ff80ed 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
}

.sign {
    width: 100% !important;
    padding: clamp(14px, 2vh, 22px) clamp(15px, 3vw, 30px) !important;
    margin-bottom: clamp(15px, 2.5vh, 25px) !important;
    background: #e8efff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 99px !important;
    color: #1a1a1a !important;
    font-size: clamp(16px, 2vw, 18px) !important;
    font-family: 'Outfit', sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    outline: none !important;
}

.sign:focus {
    background: #ffffff !important;
    border-color: rgba(255, 0, 200, 0.5) !important;
    box-shadow: 0 0 25px rgba(255, 0, 200, 0.2), inset 0 0 0 1px rgba(255, 0, 200, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

input.sign::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

.login-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 15px !important;
}

.button {
    width: 100% !important;
    padding: clamp(16px, 2.5vh, 22px) !important;
    background: linear-gradient(135deg, #ff00c8 0%, #8a2be2 100%) !important;
    border: none !important;
    border-radius: 99px !important;
    color: #fff !important;
    font-size: clamp(18px, 2.5vw, 22px) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 20px rgba(255, 0, 200, 0.3) !important;
    margin-top: 10px !important;
}

.button:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(255, 0, 200, 0.6) !important;
    filter: brightness(1.1) !important;
}

.register-link {
    margin-top: 35px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.anim-link {
    color: #fff !important;
    text-decoration: none !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
}

.anim-link:hover {
    opacity: 1 !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

/* Ensure header stays at the top and is legible */
.header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

@media (max-width: 480px) {
    .card-container {
        padding: 40px 25px !important;
        width: 100% !important;
    }

    .card-container h1 {
        font-size: 38px !important;
    }
}