* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --accent-color: #d4af37;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --success-color: #4ade80;
    --error-color: #f87171;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Membership Gate Screen */
.gate-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.gate-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-container {
    text-align: center;
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.logo-section {
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.access-form {
    background: rgba(45, 45, 45, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gate-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.membership-input {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    width: 100%;
    text-align: center;
}

.membership-input:focus {
    border-color: var(--accent-color);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.membership-input::placeholder {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.access-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
}

.access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

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

.error-message {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    transition: opacity 0.5s ease;
}

.main-content.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact-form {
    width: 100%;
}

.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-box-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.search-box {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding-right: 1rem;
    font-weight: 300;
}

.search-box::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
    min-width: 48px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

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

.form-message {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: var(--success-color);
}

.form-message.error {
    color: var(--error-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gate-screen {
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gate-container {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        margin: 0;
    }
    
    .access-form {
        padding: 2rem 1.5rem;
        width: 100%;
    }
    
    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .gate-title {
        font-size: 1.2rem;
    }
    
    .search-box-container {
        padding: 0.875rem 1.25rem;
    }
    
    .search-box {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gate-screen {
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .gate-container {
        padding: 0.75rem;
        max-width: 100%;
    }
    
    .access-form {
        padding: 1.5rem 1rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-bottom: 2rem;
    }
    
    .logo-section {
        margin-bottom: 2rem;
    }
    
    .gate-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .membership-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .access-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
}

