/* ============================================================
   Authentication Styles
   Extracted from style.css without selector renames.
   ============================================================ */

/* --- Authentication Overlay Styles --- */
#app-container {
    visibility: hidden; /* Hidden by default, made visible by JS after auth check */
}

#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 248, 250, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-box {
    background: #ffffff;
    padding: 2rem 2.25rem 2.25rem;
    border-radius: 12px;
    border: 1px solid #e0e4ea;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 400px;
}

.auth-box .header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 86, 179, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.auth-box .header-icon svg {
    width: 28px;
    height: 28px;
}

.auth-box h1 {
    margin: 0 0 0.35rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #202124);
    letter-spacing: -0.01em;
}

.auth-box p {
    margin: 0 0 1.25rem 0;
    color: var(--text-secondary, #5f6368);
    font-size: 0.875rem;
}

#google-sign-in-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    width: 100%;
}

#google-sign-in-btn:hover {
    background-color: #357ae8;
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary, #5f6368);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: 100%;
    margin: 1rem 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color, #d1d9e0);
}
.divider:not(:empty)::before { margin-right: .6em; }
.divider:not(:empty)::after { margin-left: .6em; }

#email-auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.625rem;
}

.input-group {
    width: 100%;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#email-input, #password-input, #register-name-input, #register-cohort-select {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.75rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    border: 1.5px solid var(--border-color, #d1d9e0);
    border-radius: 8px;
    color: var(--text-primary, #202124);
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#register-cohort-select {
    appearance: none;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23666%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
}

#email-input:focus, #password-input:focus, #register-name-input:focus, #register-cohort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

#email-input::placeholder, #password-input::placeholder, #register-name-input::placeholder {
    color: #adb5bd;
}

#email-auth-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    width: 100%;
    margin-top: 0.25rem;
}

#email-auth-btn:hover:not(:disabled) {
    background-color: #004494;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
    transform: translateY(-1px);
}

#email-auth-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.auth-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Guest Ticket Section Styles */
.guest-ticket-section {
    margin: 0;
}

.guest-ticket-toggle-btn {
    width: 100%;
    background: #f8fafc;
    color: var(--primary-color);
    border: 1.5px solid var(--border-color, #d1d9e0);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guest-ticket-toggle-btn:hover {
    background: #eef1f5;
    border-color: var(--primary-color);
}

.guest-ticket-toggle-btn:active {
    transform: scale(0.99);
}

.guest-ticket-toggle-btn svg {
    flex-shrink: 0;
}

.guest-ticket-input-container {
    margin-top: 1rem;
    padding-top: 1rem;
}

.guest-ticket-help {
    font-size: 0.78rem;
    color: var(--text-secondary, #5f6368);
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.4;
}

#guest-ticket-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.75rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    border: 1.5px solid var(--border-color, #d1d9e0);
    border-radius: 8px;
    color: var(--text-primary, #202124);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#guest-ticket-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

#guest-ticket-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-top: 0.625rem;
}

#guest-ticket-submit-btn:hover:not(:disabled) {
    background-color: #004494;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
    transform: translateY(-1px);
}

#guest-ticket-submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#auth-language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-switch {
    margin-top: 1.1rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #5f6368);
}

.link-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    font-family: var(--font-family);
}

.link-button:hover {
    text-decoration: underline;
}

.forgot-password-container {
    text-align: center;
    margin-top: 0.75rem;
}

/* --- Profile Completion Modal Styles --- */
#profile-completion-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
}

#profile-completion-modal .form-field input[type="text"],
#profile-completion-modal .form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    background-color: white;
}

#profile-completion-modal .form-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#profile-completion-modal .form-field select {
    /* Custom dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

#profile-completion-modal .form-field select:hover {
    border-color: #a0a0a0;
}

#profile-completion-modal .form-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#profile-completion-modal .form-field select option {
    padding: 0.75rem;
    font-size: 1rem;
}

#profile-completion-modal .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #343a40;
}

/* --- Change Password Modal Styles --- */
#change-password-modal .form-field {
    margin-bottom: 1.25rem;
}

#change-password-modal .form-field:last-of-type {
    margin-bottom: 0;
}

#change-password-modal .form-field input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    background-color: white;
}

#change-password-modal .form-field input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#change-password-modal .form-field input[type="password"]:hover {
    border-color: #a0a0a0;
}

#change-password-modal .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #343a40;
}

/* --- Edit Name Modal Styles --- */
#edit-name-modal .form-field {
    margin-bottom: 1rem;
}

#edit-name-modal .form-field input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    background-color: white;
}

#edit-name-modal .form-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

#edit-name-modal .form-field input[type="text"]:hover {
    border-color: #a0a0a0;
}

#edit-name-modal .form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #343a40;
}
