:root {
    --primary-color: #000000; /* Vasco Red */
    --secondary-color: #000000; /* Vasco Black */
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: url('../images/wall.webp') no-repeat center center fixed;
    background-size: cover;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.login-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #333;
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.3s;
}

.btn-login:hover {
    background: #c2191f;
    transform: translateY(-2px);
}

.error-msg {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

/* Home Page */
header {
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-vasco {
    height: 60px;
}

.logo-virtual {
    height: 40px;
}

.divider {
    height: 30px;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logout-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.logout-link:hover {
    color: var(--primary-color);
}

main {
    padding: 60px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-intro {
    text-align: center;
    margin-bottom: 60px;
}

.page-intro h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tour-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: white;
}

.tour-card:hover {
    transform: scale(1.03);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transition: filter 0.4s;
}

.tour-card:hover .card-image {
    filter: brightness(0.9) contrast(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-view {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

/* Tour Viewer */
.viewer-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    background: #000;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.iframe-wrapper {
    flex: 1;
    background: #000;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    main {
        padding: 40px 20px;
    }
}
