/* Common styles for all pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fecfef 50%, #9bb5ff 75%, #667eea 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Mountain silhouettes background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,600 L0,400 L200,300 L400,350 L600,250 L800,300 L1000,200 L1200,250 L1200,600 Z" fill="rgba(0,0,0,0.1)"/><path d="M0,600 L0,450 L150,380 L300,420 L500,320 L700,380 L900,280 L1100,320 L1200,280 L1200,600 Z" fill="rgba(0,0,0,0.15)"/></svg>') no-repeat center bottom;
    background-size: cover;
    z-index: -1;
}

/* Custom background for login and register pages */
body.auth-background {
    background: url('../multimedia/login-register-background.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

body.auth-background::before {
    display: none;
}

/* Auth pages - white header and footer */
body.auth-background .header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

body.auth-background .header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 3rem;
}

body.auth-background .logo a {
    text-decoration: none;
}

body.auth-background .logo h1 {
    color: #ff6b35;
    transition: color 0.3s ease;
}

body.auth-background .logo a:hover h1 {
    color: #e55a2b;
}

body.auth-background .footer {
    background: white;
    color: #1E0E62;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

body.auth-background .footer-left h3 {
    color: #ff6b35;
}

body.auth-background .footer-left p {
    color: #1E0E62;
    opacity: 1;
}

body.auth-background .footer-right p {
    color: #1E0E62;
    opacity: 1;
}

body.auth-background .social-links a {
    color: #1E0E62;
}

body.auth-background .social-links a:hover {
    color: #ff6b35;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo a:hover h1 {
    color: #e55a2b;
}

.nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link.register-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-weight: 600;
}

.nav-link.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff6b35;
}

/* Form styles */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #ff6b35;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #ff6b35;
}

.checkbox-group label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Error and success messages */
.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.success-message {
    color: #27ae60;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
}

.warning-message {
    color: #f39c12;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-size: 0.9rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

body.search-background {
    background: #fff !important;
}
body.search-background::before {
    display: none !important;
} 