@font-face {
    font-family: 'Brevia-Black';
    src: url('../fonts/Brevia-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Brevia-Black', Arial, sans-serif;
    background: url('../images/BG.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 20px 20px 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;
    padding: 20px 40px 40px 40px;
    text-align: center;
    backdrop-filter: none;
    border: none;
    margin-top: 10px;
}

/* Title Section */
.title-section {
    margin-bottom: 25px;
}

.main-title {
    max-width: 50%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 12px;
}

.subtitle {
    font-size: 2rem;
    color: #f25126;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Mall Selection */
.mall-selection {
    margin-bottom: 30px;
}

.mall-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mall-box {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #f25126;
    border-radius: 16px;
    padding: 30px;
    width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(242, 81, 38, 0.2);
    backdrop-filter: blur(10px);
}

.mall-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(242, 81, 38, 0.3);
    border-color: #d63e1f;
}

.mall-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
}

.mall-name {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    margin: 0;
}

/* Branch Selection */
.branch-selection {
    text-align: left;
}

.back-button {
    display: inline-block;
    background: #f25126;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #d63e1f;
    transform: translateY(-2px);
}

.branch-title {
    text-align: center;
    font-size: 1.8rem;
    color: #f25126;
    margin-bottom: 30px;
    font-weight: bold;
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.branch-box {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #f25126;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(242, 81, 38, 0.1);
    backdrop-filter: blur(10px);
}

.branch-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 81, 38, 0.2);
    border-color: #d63e1f;
}

.branch-name {
    font-size: 1.3rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.branch-city {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Password Section */
.password-section {
    text-align: center;
}

.password-container {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #f25126;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(242, 81, 38, 0.2);
    backdrop-filter: blur(10px);
}

.password-container h3 {
    font-size: 1.8rem;
    color: #f25126;
    margin-bottom: 15px;
    font-weight: bold;
}

.password-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

#passwordInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Brevia-Black', Arial, sans-serif;
}

#passwordInput:focus {
    outline: none;
    border-color: #f25126;
    box-shadow: 0 0 10px rgba(242, 81, 38, 0.3);
}

.login-btn {
    width: 100%;
    background: linear-gradient(to bottom, #f25126, #d63e1f);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Brevia-Black', Arial, sans-serif;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 81, 38, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    background: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: bold;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #f25126;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.3rem;
    color: #f25126;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .mall-container {
        gap: 20px;
    }
    
    .mall-box {
        width: 100%;
        max-width: 280px;
        padding: 20px;
    }
    
    .mall-logo {
        width: 80px;
        height: 80px;
    }
    
    .mall-name {
        font-size: 1.4rem;
    }
    
    .branch-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-title {
        font-size: 1.4rem;
    }
    
    .password-container {
        padding: 25px;
    }
    
    .password-container h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .mall-box {
        padding: 15px;
    }
    
    .mall-logo {
        width: 60px;
        height: 60px;
    }
    
    .mall-name {
        font-size: 1.2rem;
    }
    
    .branch-name {
        font-size: 1.1rem;
    }
    
    .password-container {
        padding: 20px;
    }
}
