/* ========== GLOBAL ========== */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ========== FONT ========== */
@font-face {
    font-family: Montserrat;
    src: url(mentahan/Font/Montserrat/Montserrat-VariableFont_wght.ttf);
}

/* ========== BODY LAYOUT ========== */
body {
    margin: 0;
    padding: 0;
    background: #fcb7e1;
    font-family: Arial, sans-serif;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow-x: hidden;
    position: relative;
}

/* ========== TAP OVERLAY ========== */
.tap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(252, 183, 225, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.6s ease;
}

.tap-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-60px);
}

.tap-image {
    margin-bottom: 60px;
}

/* ===== FACE CONTAINER ===== */
.face-rotator {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* ===== FACE STYLE ===== */
.face {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transform-origin: center;
}

/* ===== FACE ANIMATION ===== */
.face1 {
    animation: rotateStep 2s steps(1) infinite;
}

.face2 {
    animation: rotateStep 2s steps(1) infinite;
    animation-delay: 0.3s;
}

.face3 {
    animation: rotateStep 2s steps(1) infinite;
    animation-delay: 0.6s;
}

.face4 {
    animation: rotateStep 2s steps(1) infinite;
    animation-delay: 0.9s;
}

/* ========== ANIMATION ========== */
@keyframes rotateStep {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(12deg); }
    50%  { transform: rotate(12deg); }
    75%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========== LOGIN BUTTON ========== */
.login-btn {
    position: absolute;
    right: 18px;
    top: 16px;
    padding: 10px 25px;
    background: white;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #75154D;
    transition: 0.3s ease;
}

.login-btn:hover {
    background: #75154D;
    color: white;
}

/* ========== USER MENU ========== */
.menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 999;
}

.menu-btn svg {
    width: 52px;
    height: 52px;
    color: white;
}

.menu-card {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 220px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    font-family: "Montserrat", serif;
}

.menu-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: bold;
}

.user-name {
    display: flex;
    align-items: baseline;
    font-size: 18px;
    gap: 6px;
}

.user-name span {
    font-size: 25px;
    font-weight: 700;
    color: #75154D;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.email-label {
    font-weight: 600;
    color: #555;
}

.email-text {
    font-weight: 400;
    color: #333;
    word-break: break-word;
}

.logout-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #75154D;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* ========== MAIN CONTENT ========== */
.container {
    text-align: center;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.title-img {
    width: 100%;
    max-width: 250px;
    min-width: 80px;
}

.text {
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "Montserrat", serif;
    color: #75154D;
    text-align: center;
}

.form-group {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 18px;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
    color: #4d0030;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: none;
    outline: none;
}

.ok-btn {
    margin-top: 20px;
    padding: 10px 40px;
    border: none;
    background: #e1007a;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.25s ease;
}

.ok-btn:hover {
    background: #c8006b;
}

/* ========== DECORATION ========== */
.image {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.g1 {
    position: absolute;
    bottom: -100px;
    left: 30px;
    width: 500px;
    transform: rotate(20deg);
}

.g2 {
    position: absolute;
    bottom: -120px;
    left: -20px;
    width: 450px;
    opacity: 0.5;
    transform: rotate(5deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {

    .tap-content {
        transform: translateY(-20px);
        padding: 0 16px;
    }

    .face {
        width: 56px;
        height: 56px;
    }

    .face-rotator {
        gap: 8px;
        margin-bottom: 16px;
    }

    .tap-image {
        width: 180px;
        margin-bottom: 24px;
    }

    .container {
        padding: 0 16px;
        width: 100%;
    }

    .title-img {
        width: 60%;
        max-width: 220px;
    }

    .form-group {
        max-width: 100%;
    }

    .ok-btn {
        width: 100%;
        max-width: 260px;
    }

    .g1 {
        width: 260px;
        bottom: -80px;
        left: -20px;
    }

    .g2 {
        width: 230px;
        bottom: -90px;
        left: -40px;
    }
}

