/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("https://i.pinimg.com/736x/53/e1/01/53e101e19fbfcbd81d61771ada87c17b.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    position: relative;
}

/* Optional dark overlay for better readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ================= SCENE & CARD ================= */
.scene {
    width: 360px;
    height: 440px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s ease-in-out;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 40px;
    border-radius: 50px;
    box-shadow: 0 0 40px rgb(0, 0, 0);
    backface-visibility: hidden;
    color: #fff;

    /* ✅ FULL TRANSPARENT GLASS */
    background: rgba(255, 255, 255, 0); /* fully transparent */
    /* backdrop-filter: blur(15px); */
    border: 1px solid rgba(255, 255, 255, 0.3); /* very subtle border for shape */
}

/* Flip front/back */
.front {
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
}

.card.flipped {
    transform: rotateY(180deg);
}

/* ================= HEADINGS ================= */
h2, h6 {
    text-align: center;
    margin-bottom: 30px;
}

/* ================= INPUTS ================= */
input {
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #000000;
    outline: none;
}

.password-box {
    position: relative;
}

.eye {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.7;
}

/* ================= BUTTONS ================= */
button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
     background: linear-gradient(90deg, #9DB1D9, #E8E6F7);
    cursor: pointer;
    font-weight: bold;
}

/* ================= GOOGLE BUTTON ================= */
#google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    background: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.google-logo {
    width: 20px;
    height: 20px;
}

/* ================= TEXT ================= */
p {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

a {
    color: #000000;
    text-decoration: none;
}

.error {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

/* ================= LOGOUT BUTTON & DOOR ================= */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 20px;
    width: 160px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #334155;
}

.door {
    width: 30px;
    height: 30px;
    background: #5b5c5f;
    border-radius: 4px;
    position: relative;
    transform-origin: left;
}

.person {
    width: 8px;
    height: 14px;
    background: white;
    position: absolute;
    bottom: 6px;
    left: 11px;
    border-radius: 3px;
}

/* Animations */
.logout-btn.animate .door {
    animation: doorOpen 0.6s forwards;
}

.logout-btn.animate .person {
    animation: jumpOut 1s forwards;
}

@keyframes doorOpen {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(70deg); }
}

@keyframes jumpOut {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(60px); opacity: 0; }
}