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

body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
}

body.entrance-mode {
    overflow: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    max-width: 90%;
    width: 800px;
    cursor: pointer;
    perspective: 2000px;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.logo-wrapper:hover .logo {
    transform: rotateY(-15deg);
    box-shadow: 
        20px 0 50px rgba(255, 255, 255, 0.15),
        40px 0 80px rgba(0, 0, 0, 0.5);
}

.door-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 75px;
    height: 170px;
    cursor: pointer;
    z-index: 10;
}

/* Responsive positioning for door overlay */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 90%;
    }
    
    .door-overlay {
        width: 50px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 95%;
    }
    
    .door-overlay {
        width: 35px;
        height: 80px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #888;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #fff;
}

.modal-content h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

.modal-content p {
    color: #888;
    margin-bottom: 30px;
    text-align: center;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

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

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-login:hover {
    background-color: #e0e0e0;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .modal-content h2 {
        font-size: 20px;
    }
}

/* Success and Error Messages */
.success-message,
.error-message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.success-message {
    background-color: #10b981;
    color: #ffffff;
}

.error-message {
    background-color: #ef4444;
    color: #ffffff;
}

/* Door Opening Animation */
.door-opening {
    animation: doorOpen 1.5s ease-out forwards;
}

@keyframes doorOpen {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-120deg);
        opacity: 0;
    }
}

.entrance-fade-out {
    animation: fadeOutEntrance 1.5s ease-out forwards;
}

@keyframes fadeOutEntrance {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Members Area Styles */
.members-area {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.members-area.hidden {
    display: none;
    opacity: 0;
}

.members-area.fade-in {
    display: block;
    opacity: 0;
    animation: fadeInMembers 1s ease-in 1.2s forwards;
}

@keyframes fadeInMembers {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Styles */
.member-header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
}



.header-logo {
    height: 120px;
    width: auto;
    padding: 10px;
    background-color: transparent;
}

.member-nav {
    display: flex;
    gap: 30px;
}

.member-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.member-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.member-nav a:hover {
    color: #cccccc;
}

.member-nav a:hover::after {
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-size: 14px;
}

.btn-logout {
    padding: 8px 20px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Main Content */
.member-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-section h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.subtitle {
    color: #888888;
    font-size: 18px;
    font-weight: 400;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dashboard-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.dashboard-card h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.dashboard-card p {
    color: #888888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .member-nav {
        gap: 15px;
    }
    
    .member-nav a {
        font-size: 14px;
    }
    
    .welcome-section h1 {
        font-size: 32px;
    }
    
    .member-content {
        padding: 40px 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
