/* ===== DARK LOGIN PANEL ===== */
:root {
  --primary-color: #3a4e8c;
  --secondary-color: #a8b2d3;
  --accent-color: #d72323;
  --dark-bg: #2a2e3d;
  --medium-bg: #383a4a;
  --light-bg: #44495a;
  --text-light: #f5f5f5;
  --text-muted: #b0b5c0;
  --border-radius: 12px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(30, 30, 60, 0.97);
}

/* ===== NAVIGATION STYLES ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 70px;
}

nav li {
    margin: 0 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 25px;
    transition: var(--transition);
    letter-spacing: 1px;
    display: block;
}

nav a:hover,
nav a:focus {
    background: var(--primary-color);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

nav a.active {
    background: var(--accent-color);
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animacja hamburgera */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu mobilne - lepsze tło */
nav ul.active {
    backdrop-filter: blur(8px);
    background: rgba(20, 20, 40, 0.95);
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

/* ===== BODY & LAYOUT ===== */
body {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 100%);
  color: var(--text-light);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.auth-container {
  max-width: 420px;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
  margin: 60px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.auth-form-container {
  background: var(--light-bg);
  padding: 50px;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255,255,255,0.08);
}

.image {
    display: flex;
    justify-content: center;
}

.auth-title {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 25px;
  font-size: 2em;
}

.auth-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.2em;
}

.auth-form input {
  display: block;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  font-size: 1em;
  background: var(--medium-bg);
  color: var(--text-light);
  transition: var(--transition);
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(215, 35, 35, 0.1);
  outline: none;
}

.auth-button, .secondary-button {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 10px;
}

.auth-button:hover, .secondary-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(215, 35, 35, 0.2);
}

.secondary-button {
  background: var(--secondary-color);
}

.auth-message {
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
}

.error-message {
  background-color: rgba(215,35,35,0.08);
  color: var(--accent-color);
}

.success-message {
  background-color: rgba(40,167,69,0.08);
  color: #28a745;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.auth-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
  color: var(--text-light);
}

.details-container {
  margin-bottom: 20px;
  background: var(--medium-bg);
  padding: 15px;
  border-radius: 8px;
  color: var(--text-light);
}

.details-container summary {
  cursor: pointer;
  font-weight: 600;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablety (768px i mniej) */
@media (max-width: 768px) {
  nav li {
    margin: 0 15px;
  }
  
  nav a {
    font-size: 1.1em;
    padding: 10px 16px;
  }
}

/* Smartfony (700px i mniej) - NAWIGACJA MOBILNA */
@media (max-width: 700px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(30, 30, 60, 0.98);
        z-index: 1000;
        padding: 80px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 15px 0;
        text-align: center;
    }

    nav a {
        font-size: 1.5em;
        padding: 15px;
    }
    
    .auth-container {
        margin: 20px auto;
        min-height: calc(100vh - 110px);
    }
}

/* Responsywność formularza */
@media (max-width: 600px) {
  .auth-container {
    max-width: 100vw;
    padding: 10px;
  }
  
  .auth-form-container {
    padding: 30px 20px;
    border-radius: 10px;
  }
  
  .auth-title {
    font-size: 1.5em;
  }
  
  .auth-subtitle {
    font-size: 1em;
  }
  
  .auth-form input, .auth-button, .secondary-button {
    font-size: 0.95em;
    padding: 10px 12px;
  }
  
  nav a {
    font-size: 1.2em;
    padding: 12px;
  }
}

/* Ekstremalnie małe ekrany */
@media (max-width: 360px) {
  nav a {
    font-size: 1em;
  }
}