/* style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}
.container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 90%;
    width: 350px;
}
h1 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
}
h2 {
    font-size: 1.2rem;
    font-weight: normal;
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
}
.login-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.login-button:hover {
    background-color: #3367D6;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}
.login-button img {
    background-color: white;
    padding: 2px;
    border-radius: 2px;
    margin-right: 15px;
    width: 20px;
    height: 20px;
}
.gate-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.gate-button:hover {
    background-color: #218838;
}
.gate-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}
.logout-link {
    display: block;
    margin-top: 1.5rem;
    color: #007bff;
    text-decoration: none;
}
.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
}
.status {
    margin-top: 1rem;
    font-weight: bold;
}

/* Add this to style.css */
.video-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintains widescreen shape */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.video-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Adjust container to handle the taller content */
body {
    height: auto; /* Changed from 100vh to allow scrolling on small phones */
    padding: 20px 0;
}


.video-container {
    position: relative;
    width: 100% !important; /* Ensure it takes full width */
    max-width: 960px; /* Or your preferred max width */
    aspect-ratio: 16 / 9 !important; /* Force 16:9 aspect ratio on the container */
    height: auto !important; /* Let aspect-ratio define height based on width */
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #000; /* Background to show black bars if object-fit: contain */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; /* Force video to fill container width */
    height: 100% !important; /* Force video to fill container height */
    object-fit: contain; /* IMPORTANT: 'contain' will scale the video to fit within the 16:9 frame, adding black bars if necessary to prevent distortion. */
    /* If you want the video to *always* fill the 16:9 space and crop the edges if necessary (no black bars), change to 'object-fit: cover;'. */
    aspect-ratio: 16 / 9; /* Also enforce aspect ratio on the video element itself */
}
