/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Hidden by default to prevent flash */
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 0 40px 20px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    margin: 0 0 30px 0;
    color: #bdc3c7;
    font-size: 1.1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #4ecdc4;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4ecdc4;
}

.form-group input::placeholder {
    color: #bdc3c7;
}

/* Login buttons: Log In and Google full-width rows; Guest and Sign Up share third row */
.login-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: 16px;
}

.login-buttons-grid .login-btn,
.login-buttons-grid .google-btn {
    grid-column: 1 / -1;
}

.login-buttons-grid .login-btn,
.login-buttons-grid .google-btn,
.login-buttons-grid .guest-btn,
.login-buttons-grid .signup-btn {
    margin-top: 0;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
}

.login-btn {
    background: linear-gradient(45deg, #4ecdc4, #2cb1a6);
    color: #1a1a2e;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.google-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.google-btn:hover {
    background: #357ae8;
}

.guest-btn {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.guest-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.4);
}

.signup-btn {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.signup-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    border-color: rgba(78, 205, 196, 0.4);
}

.signup-heading {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: #4ecdc4;
    font-weight: 600;
}

.signup-form {
    margin-bottom: 12px;
}

.signup-back-link {
    display: block;
    margin-top: 15px;
    color: #4ecdc4;
    text-decoration: none;
    font-size: 0.95rem;
}

.signup-back-link:hover {
    text-decoration: underline;
}

.login-view,
.signup-view {
    width: 100%;
}

.login-contact {
    margin-top: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.35;
}

.login-contact-link {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

.login-contact-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Prevent logo images from being clickable */
.login-header img {
    cursor: default !important;
    pointer-events: none !important;
}

