/* ===== Base Reset ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    height: 100vh;
    background: #000;
    font-family: 'Aeonik', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e6faff;
}

/* ===== Wrapper ===== */

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Card ===== */

.auth-card {
    width: 380px;
    padding: 50px 45px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.05);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.auth-card h1 {
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #8fffff;
}

/* ===== Inputs ===== */

.input-group {
    position: relative;
    margin-bottom: 28px;
}

.input-group input {
    width: 100%;
    padding: 18px 14px 8px 14px;
    background: #0b0f12;
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.input-group input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.25);
}

/* Floating label */

.input-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    transition: 0.2s ease;
    pointer-events: none;
    background: transparent;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 11px;
    color: #00ffff;
}

/* Hide default placeholder */
.input-group input::placeholder {
    color: transparent;
}

/* Force dark autofill (Chrome fix) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0b0f12 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ===== Button ===== */

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #00e5ff, #00b3ff);
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s ease;
}

.auth-btn:hover {
    box-shadow: 0 0 18px rgba(0,255,255,0.6);
}

/* ===== Error ===== */

.auth-error {
    background: rgba(255, 0, 60, 0.08);
    border: 1px solid rgba(255, 0, 60, 0.3);
    color: #ff4b6e;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ===== Alt Link ===== */

.auth-alt {
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.auth-alt a {
    color: #00ffff;
    text-decoration: none;
}

.auth-alt a:hover {
    text-decoration: underline;
}

/* ===== Animation ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== Success ===== */

.auth-success {
    background: rgba(0, 255, 140, 0.08);
    border: 1px solid rgba(0, 255, 140, 0.3);
    color: #00ff9c;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
}

