/* =============================================
   CLUB DEPORTIVO BRISAS DE LOYOLA
   Visual Specification Compliant
   ============================================= */

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #070707;
  --white: #FFFFFF;
  --orange: #FF6B00;
  --orange-dark: #C95A00;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Oswald', sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  background-image: url('../assets/logo.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.2);
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   BACKGROUND TEXTURES
   ============================================= */
.bg-textures {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* --- Esquina superior izquierda: cuadrados naranjas alineados --- */
.bg-squares-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 18vw;
  height: 40vh;
  background-image:
    linear-gradient(var(--orange) 1px, transparent 1px),
    linear-gradient(90deg, var(--orange) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

/* --- Parte superior derecha: resplandor naranja + líneas diagonales --- */
.bg-glow-tr {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 45vh;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.bg-lines-tr {
  position: absolute;
  top: 8%;
  right: 5%;
}

.bg-lines-tr span {
  display: block;
  width: 220px;
  height: 2px;
  background: var(--orange-dark);
  opacity: 0.4;
  border-radius: 1px;
}

.bg-lines-tr span:first-child {
  transform: rotate(-35deg);
  margin-bottom: 18px;
}

.bg-lines-tr span:last-child {
  transform: rotate(-35deg);
  width: 180px;
  margin-left: 20px;
}

/* --- Esquina inferior izquierda: resplandor blanco + rombos + líneas --- */
.bg-glow-bl {
  position: absolute;
  bottom: -5%;
  left: -5%;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.rhombus-outer {
  position: absolute;
  bottom: 10%;
  left: 4%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--orange);
  transform: rotate(45deg) skewX(-8deg);
  opacity: 0.45;
}

.rhombus-inner {
  position: absolute;
  bottom: 12.5%;
  left: 5.5%;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--orange);
  transform: rotate(45deg) skewX(-8deg);
  opacity: 0.3;
}

.bg-lines-bl {
  position: absolute;
  bottom: 22%;
  left: 8%;
}

.bg-lines-bl span {
  display: block;
  width: 180px;
  height: 2px;
  background: var(--orange);
  opacity: 0.3;
  border-radius: 1px;
}

.bg-lines-bl span:first-child {
  transform: rotate(30deg);
  margin-bottom: 14px;
}

.bg-lines-bl span:last-child {
  transform: rotate(30deg);
  width: 140px;
  margin-left: 25px;
}

/* --- Esquina inferior derecha: resplandor naranja + brochazos --- */
.bg-glow-br {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 45vw;
  height: 45vh;
  background: radial-gradient(ellipse at center, rgba(255,107,0,0.18) 0%, transparent 65%);
  border-radius: 50%;
}

.paint-strokes-br {
  position: absolute;
  bottom: 5%;
  right: 2%;
  width: 250px;
  height: 200px;
  background:
    radial-gradient(ellipse 80px 25px at 30% 40%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 60px 20px at 60% 55%, rgba(255,107,0,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 90px 18px at 45% 70%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(ellipse 50px 15px at 70% 30%, rgba(255,107,0,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 70px 22px at 25% 65%, rgba(255,107,0,0.3) 0%, transparent 100%);
  transform: rotate(-8deg);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  background: transparent;
}

/* --- Hamburger custom --- */
.hamburger {
  position: absolute;
  left: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3.5px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.35s ease;
  transform-origin: center;
}

.hamburger:hover span {
  background: var(--orange);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(9px, -9px);
}

/* --- Nav links --- */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: capitalize;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
}

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

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  min-width: 300px;
  max-width: 440px;
  height: 100vh;
  background: var(--black);
  border-right: 2px solid var(--orange);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  padding: 35px 0;
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  padding: 0 28px 22px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.sidebar-club-name {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.sidebar-team-name {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 1px;
}

.sidebar-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-top: 22px;
  transform: rotate(-1.5deg);
}

.sidebar-nav {
  flex: 1;
  padding: 18px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 28px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
}

.sidebar-item:hover {
  background: rgba(255, 107, 0, 0.08);
}

.sidebar-item.active {
  background: var(--orange);
}

.sidebar-item-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-item.active .sidebar-item-icon {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.sidebar-footer-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 12px 28px 0;
  transform: rotate(1.5deg);
}

/* =============================================
   HERO CONTENT
   ============================================= */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.logo-container {
  width: 320px;
  max-width: 75vw;
  animation: fadeInUp 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =============================================
   SOCIAL ICONS
   ============================================= */
.social-icons {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 90;
}

.social-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.social-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6);
}

.social-icon.whatsapp {
  background: #25D366;
}

.social-icon.facebook {
  background: #1877F2;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
/* --- Login Wrapper --- */
.login-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 30px;
}

/* --- Auth Panel (base) --- */
.auth-panel {
  background: rgba(14, 14, 14, 0.97);
  border: 2px solid var(--orange);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 38px 34px;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.auth-panel.wide {
  max-width: 620px;
}

.auth-panel-border {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 14px;
  pointer-events: none;
}

/* --- Panel Top (logo + verse inside panel) --- */
.auth-panel-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 24px;
}

.auth-panel-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.auth-panel-values {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
}

.dot-sep {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.auth-panel-verse {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 14px;
  text-transform: uppercase;
  line-height: 1.6;
}

.auth-panel-verse-ref {
  color: var(--white);
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.7;
  font-weight: 500;
}

.auth-panel-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin-bottom: 28px;
}

.auth-section { text-align: center; }
.auth-section.hidden { display: none; }

.auth-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.auth-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  flex-shrink: 0;
}

.auth-deco-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-deco-line span {
  display: block;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
}

.auth-deco-line.left span:nth-child(1) { width: 24px; }
.auth-deco-line.left span:nth-child(2) { width: 18px; }
.auth-deco-line.left span:nth-child(3) { width: 12px; }
.auth-deco-line.right span:nth-child(1) { width: 24px; margin-left: auto; }
.auth-deco-line.right span:nth-child(2) { width: 18px; margin-left: auto; }
.auth-deco-line.right span:nth-child(3) { width: 12px; margin-left: auto; }

.auth-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 400;
}

/* --- Form --- */
.fg {
  margin-bottom: 20px;
  text-align: left;
}

.fg label {
  display: block;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.iw {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  padding: 0 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.iw:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.iw i {
  color: var(--orange);
  font-size: 15px;
  margin-right: 12px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.iw input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
}

.iw input::placeholder {
  color: rgba(255,255,255,0.25);
}

.toggle-pw {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 4px;
  font-size: 15px;
  transition: color 0.3s;
}

.toggle-pw:hover { color: var(--orange); }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.cb-label input[type="checkbox"] { display: none; }

.cb-mark {
  width: 17px;
  height: 17px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cb-label input:checked + .cb-mark {
  background: var(--orange);
}

.cb-label input:checked + .cb-mark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.link-orange {
  color: var(--orange);
  font-weight: 600;
  transition: opacity 0.3s;
}

.link-orange:hover { opacity: 0.75; }

.btn-main {
  width: 100%;
  padding: 15px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.btn-main:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 0, 0.4);
}

.btn-main:active {
  transform: translateY(0);
}

.sep-line {
  display: flex;
  align-items: center;
  margin: 24px 0;
  gap: 14px;
}

.sep-line::before,
.sep-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.sep-line span {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  font-weight: 500;
}

.social-btns {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.btn-soc {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s, border-color 0.3s;
}

.btn-soc:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.btn-google i { color: #EA4335; font-size: 16px; }
.btn-fb i { color: #1877F2; font-size: 16px; }
.btn-ig i { color: #E4405F; font-size: 16px; }

.optional-tag {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-weight: 400;
}

.auth-switch {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 700;
  transition: opacity 0.3s;
}

.auth-switch a:hover { opacity: 0.75; }

.legal {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 18px;
  line-height: 1.6;
}

.legal a {
  color: var(--orange);
  font-weight: 600;
}

/* =============================================
   FORM ERRORS
   ============================================= */
.fg.error .iw { border-color: #e74c3c; }
.fg.error label { color: #e74c3c; }

.err-msg {
  color: #e74c3c;
  font-size: 11px;
  margin-top: 5px;
  text-align: left;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .login-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 30px 20px;
  }

  .auth-panel.wide { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }

  .sidebar { width: 80%; min-width: unset; }

  .logo-container { width: 280px; }

  .social-icons { right: 12px; }
  .social-icon { width: 44px; height: 44px; font-size: 19px; }
}

@media (max-width: 480px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.5px; }
  .hamburger { left: 18px; }
  .navbar { padding: 18px 20px; }
  .logo-container { width: 240px; }
  .sidebar { width: 88%; }

  .login-wrapper { padding: 20px 12px; }
  .auth-panel.wide { padding: 28px 20px; }
  .social-btns { flex-direction: column; }

  .social-icons { right: 8px; }
  .social-icon { width: 40px; height: 40px; font-size: 17px; }
  .social-icons { gap: 10px; }
}

/* =============================================
   ADMIN NAV
   ============================================= */
.nav-admin-badge {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
}

.nav-link-logout {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  transition: color 0.3s;
}

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

.nav-link-login {
  color: var(--orange) !important;
}

/* =============================================
   ADMIN CONTENT
   ============================================= */
.admin-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 80px;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.admin-form {
  max-width: 600px;
}

.admin-form textarea {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.admin-form select {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  color: var(--white);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.admin-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* =============================================
   DASHBOARD CARDS
   ============================================= */
.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background: rgba(14, 14, 14, 0.85);
  border: 1.5px solid rgba(255, 107, 0, 0.2);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.2);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}
