/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    user-select: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-x: hidden;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
}

/* Main container */
.firstScreen-container {
    width: 100%;
    max-width: 460px;
    padding: 42px 32px 44px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

/* Logo */
.firstScreen-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 24px;
}

.firstScreen-logo img {
    width: auto;
    height: auto;
    max-width: clamp(148px, 52vw, 220px);
    max-height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

/* Title */
.firstScreen-title {
    margin-bottom: 12px;
    color: #111827;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.3px;
}

/* Description */
.firstScreen-description {
    margin-bottom: 32px;
    color: #4b5563;
    font-size: clamp(13px, 2.5vw, 15.5px);
    line-height: 1.65;
}

#message {
    display: none;
}

#message.visible.error,
#message.visible.success {
    overflow-wrap: anywhere;
}

#message.visible.error {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

#message.visible.success {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* Common button styles */
.premium-btn {
    width: 100%;
    min-height: 48px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.premium-btn:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Check-in button */
.btn-checkin {
    background: linear-gradient(135deg, #1d6f42, #22c55e);
    box-shadow: 0 10px 25px rgba(29, 111, 66, 0.35);
}

.btn-checkin:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #165a39, #16a34a);
    box-shadow: 0 14px 30px rgba(29, 111, 66, 0.45);
}

.btn-checkin:disabled {
    background: #d1fae5;
    color: #374151;
    box-shadow: none;
    cursor: not-allowed;
}

/* Check-out button */
.btn-checkout {
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    box-shadow: 0 10px 25px rgba(127, 29, 29, 0.35);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #991b1b, #dc2626);
    box-shadow: 0 14px 30px rgba(127, 29, 29, 0.45);
}

.btn-checkout:disabled {
    background: #fca5a5;
    color: #374151;
    box-shadow: none;
    cursor: not-allowed;
}

/* Button container */
.premium-btn-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

/* Footer */
.firstScreen-footer {
    margin-top: 30px;
    color: #6b7280;
    font-size: 12px;
}

/* Entrance animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small phones */
@media (max-width: 360px) {
    .firstScreen-container {
        padding: 28px 18px 32px;
        border-radius: 18px;
    }

    .firstScreen-logo img {
        max-width: 150px;
        max-height: 48px;
    }

    .premium-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .firstScreen-container {
        padding: 32px 22px 36px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    body {
        padding: 24px;
    }

    .firstScreen-container {
        max-width: 520px;
        padding: 44px 36px 46px;
        border-radius: 26px;
    }
}

/* Laptop */
@media (min-width: 769px) and (max-width: 1200px) {
    .firstScreen-container {
        max-width: 480px;
    }
}

/* Large desktop / kiosk */
@media (min-width: 1201px) {
    body {
        padding: 40px;
    }

    .firstScreen-container {
        max-width: 520px;
        padding: 48px 38px 50px;
    }

    .firstScreen-logo img {
        max-width: 230px;
        max-height: 72px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
    }

    .firstScreen-container {
        padding: 20px 18px 24px;
    }

    .firstScreen-logo img {
        max-width: 140px;
        max-height: 40px;
    }
}