@font-face {
    font-family: 'Home Video';
    src: url('../font/home-video/HomeVideo-BLG6G.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Home Video', sans-serif;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.ticket-container {
    max-width: 400px;
    width: 90%; /* Make it responsive */
    padding: 2em;
}

h1 {
    font-family: 'Home Video', sans-serif;
    background-color: #ee54b2;
    color: black;
    font-size: 24px;
    text-align: center;
    margin-bottom: 1.5em;
    margin-top: 0;
}

form {
    width: 100%;
    /* max-width is handled by ticket-container now */
    display: flex;
    flex-direction: column;
}

form div {
    margin-bottom: 1.5em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8em;
    font-size: 1rem;
    font-family: 'Home Video';
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    border: 1px solid #666; /* Lighter grey border for contrast */
    border-radius: 4px;
    box-sizing: border-box;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #fff;
    opacity: 1; /* Firefox */
}

button[type="submit"] {
    padding: 0.8em;
    font-family: 'Home Video';
    font-size: 1rem;
    color: #000;
    background-color: #3ec4e3;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #fff;
    color: #000;
}

.error-message {
    color: #ff4d4d; /* Red color for errors */
    text-align: center;
    margin-bottom: 1em;
    display: none; /* Hidden by default, shown by JavaScript */
    font-size: 0.9em;
}

.password-field {
    position: relative;
    margin-bottom: 1.5em;
}

.password-field input {
    width: 100%;
    padding-right: 3em; /* Make space for the toggle button */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3ec4e3; /* Match button color */
    cursor: pointer;
    font-size: 0.8em;
    font-family: 'Home Video', sans-serif;
    padding: 0;
    z-index: 10;
}

.input-with-button {
    display: flex;
    gap: 10px; /* Space between input and button */
    margin-bottom: 1.5em; /* Maintain spacing */
    align-items: center; /* Vertically align items */
}

.input-with-button input {
    flex-grow: 1; /* Allow input to take up available space */
}

.input-with-button button {
    flex-shrink: 0; /* Prevent button from shrinking */
}

input[type="text"]:focus {
    outline: none; /* Remove default outline */
    border-color: #ee54b2; /* Change border color on focus to pink heading color */
}