/* Ciné Le Paris - Login Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500;600&display=swap');

/* Login page specific variables */
:root {
  --cine-primary: #e50914;
  --cine-secondary: #b20710;
  --cine-text: #ffffff;
  --cine-light-text: #b3b3b3;
  --cine-bg: #121212;
  --cine-accent: #1a1a1a;
  --cine-card-bg: #1e1e1e;
  --cine-card-bg-gradient: linear-gradient(145deg, #1e1e1e, #2d2d2d);
  --cine-border: rgba(255, 255, 255, 0.1);
}

/* Reset only for login elements */
.cine-login-page *,
.cine-login-logo *,
.cine-login-form * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles that won't affect the navbar */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--cine-bg);
  color: var(--cine-text);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Login page container */
.cine-login-page {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  margin: 80px auto 2rem; /* Added top margin to account for navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo styling */
.cine-login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.cine-login-logo img {
  height: 60px;
}

/* Form styling */
.cine-login-form {
  background: var(--cine-card-bg-gradient);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  animation: cineLoginFadeIn 0.5s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--cine-border);
}

.cine-login-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--cine-primary), var(--cine-secondary));
}

/* Heading styles */
.cine-login-form h2 {
  font-family: 'Playfair Display', serif;
  color: var(--cine-text);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.cine-login-form h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--cine-primary);
}

/* Form elements */
.cine-login-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--cine-light-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.cine-login-form input[type="text"],
.cine-login-form input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--cine-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cine-login-form input[type="text"]:focus,
.cine-login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--cine-primary);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
  background-color: rgba(255, 255, 255, 0.12);
}

/* Submit button */
.cine-login-button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(90deg, var(--cine-primary), var(--cine-secondary));
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cine-login-button:hover {
  background: linear-gradient(90deg, #f51f23, #c90812);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.cine-login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Error message */
.cine-login-error {
  color: #ff8c94;
  background-color: rgba(220, 53, 69, 0.15);
  padding: 0.8rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  border-left: 4px solid #dc3545;
}

/* Decorative elements */
.cine-decoration {
  position: absolute;
  opacity: 0.05;
  z-index: 0;
  color: var(--cine-text);
}

.cine-decoration.top-left {
  top: -30px;
  left: -30px;
  font-size: 5rem;
  transform: rotate(-20deg);
}

.cine-decoration.bottom-right {
  bottom: -30px;
  right: -30px;
  font-size: 5rem;
  transform: rotate(20deg);
}

/* Animations */
@keyframes cineLoginFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .cine-login-page {
    padding: 1rem;
  }
  
  .cine-login-form {
    padding: 1.5rem;
  }
  
  .cine-login-form h2 {
    font-size: 1.8rem;
  }
}

/* Background styling that won't affect navbar */
.cine-login-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.95)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: -1;
}