@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap");
:root {
  --page-bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #f9f9f9;
  --surface-3: #f0f0f0;
  --text: #333333;
  --text-muted: #666666;
  --text-subtle: #999999;
  --text-on-accent: #ffffff;
  --border: #e0e0e0;
  --border-strong: #dddddd;
  --border-subtle: #eeeeee;
  --border-faint: #f0f0f0;
  --border-invert: #333333;
  --border-on-dark: #ffffff;
  --accent: #18A64A;
  --accent-hover: #128a3a;
  --accent-soft: #e8f5e9;
  --accent-soft-2: #f0f8f0;
  --accent-soft-3: #c8e6c9;
  --accent-alt: #4CAF50;
  --accent-blue: #2196F3;
  --warn: #ff9800;
  --warn-soft: #fff3e0;
  --danger: #e74c3c;
  --danger-soft: #fef5f5;
  --danger-soft-2: #fde8e8;
  --danger-soft-3: #fff3f3;
  --danger-soft-4: #fdf0f0;
  --danger-border: #ffcccc;
  --info-soft: #f0f9f0;
  --rank-1: #ffd700;
  --rank-2: #c0c0c0;
  --rank-3: #cd7f32;
  --header-bg: #333333;
  --header-text: #ffffff;
  --code-bg: #272822;
  --code-header-bg: #1e1f1c;
  --code-border: #3a3a35;
  --code-text: #bbbbbb;
  --code-text-2: #dddddd;
  --grad-accent: linear-gradient(135deg, #18A64A, #2196F3);
  --grad-green: linear-gradient(135deg, #18A64A, #128a3a);
  --overlay: rgba(0, 0, 0, 0.5);
  --overlay-soft: rgba(0, 0, 0, 0.3);
  --hover-on-dark: rgba(255, 255, 255, 0.05);
  --hover-on-light: rgba(0, 0, 0, 0.05);
  --danger-bg: rgba(231, 76, 60, 0.1);
  --focus-ring: rgba(51, 51, 51, 0.1);
  --border-soft: rgba(255, 255, 255, 0.3);
  --shadow-xs: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-wrapper: 0 0 30px rgba(0, 0, 0, 0.1);
  --shadow-menu: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-nav: 0 4px 8px rgba(0, 0, 0, 0.2);
  --shadow-accent: 0 10px 20px rgba(24, 166, 74, 0.3);
  --shadow-accent-sm: 0 4px 8px rgba(24, 166, 74, 0.3);
}

[data-theme=bw] {
  --page-bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #1f1f1f;
  --surface-3: #232323;
  --text: #eaeaea;
  --text-muted: #a0a0a0;
  --text-subtle: #7a7a7a;
  --text-on-accent: #1a1a1a;
  --border: #333333;
  --border-strong: #444444;
  --border-subtle: #2a2a2a;
  --border-faint: #222222;
  --border-invert: #cccccc;
  --border-on-dark: #dddddd;
  --accent: #d0d0d0;
  --accent-hover: #b0b0b0;
  --accent-soft: #2a2a2a;
  --accent-soft-2: #232323;
  --accent-soft-3: #3a3a3a;
  --accent-alt: #c0c0c0;
  --accent-blue: #b8b8b8;
  --warn: #b8b8b8;
  --warn-soft: #2a2a2a;
  --danger: #b0b0b0;
  --danger-soft: #1f1f1f;
  --danger-soft-2: #232323;
  --danger-soft-3: #232323;
  --danger-soft-4: #232323;
  --danger-border: #3a3a3a;
  --info-soft: #232323;
  --rank-1: #e0e0e0;
  --rank-2: #c0c0c0;
  --rank-3: #a0a0a0;
  --header-bg: #000000;
  --header-text: #eaeaea;
  --code-bg: #141414;
  --code-header-bg: #0e0e0e;
  --code-border: #2a2a2a;
  --code-text: #a0a0a0;
  --code-text-2: #c0c0c0;
  --grad-accent: linear-gradient(135deg, #d0d0d0, #b8b8b8);
  --grad-green: linear-gradient(135deg, #d0d0d0, #b0b0b0);
  --overlay: rgba(0, 0, 0, 0.7);
  --overlay-soft: rgba(0, 0, 0, 0.5);
  --hover-on-dark: rgba(255, 255, 255, 0.06);
  --hover-on-light: rgba(255, 255, 255, 0.04);
  --danger-bg: rgba(255, 255, 255, 0.06);
  --focus-ring: rgba(255, 255, 255, 0.15);
  --border-soft: rgba(255, 255, 255, 0.2);
  --shadow-xs: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-wrapper: 0 0 30px rgba(0, 0, 0, 0.6);
  --shadow-menu: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-nav: 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-accent-sm: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.header {
  width: 100%;
  background-color: var(--header-bg);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: 0 0 20px 20px;
  position: relative;
  box-shadow: 0 0px 50px rgba(255, 255, 255, 0);
  transition: box-shadow all 0.3s, background-color all 0.3s, color all 0.3s;
}
.header-logo {
  font-size: 14px;
  color: var(--header-text);
}
.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.header .logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
}

[data-theme=bw] .header {
  border-left: 1px solid rgba(255, 255, 255, 0.3333333333);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3333333333);
  border-right: 1px solid rgba(255, 255, 255, 0.3333333333);
  box-shadow: 0 0px 50px rgba(255, 255, 255, 0.2);
}

.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}
.burger-btn span {
  width: 25px;
  height: 2px;
  background: var(--header-text);
  transition: all 0.3s;
  border-radius: 2px;
}
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-soft);
  z-index: 999;
}
.overlay.active {
  display: block;
}

.theme-btn {
  background: transparent;
  color: var(--header-text);
  border: 2px solid var(--header-text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.theme-btn:hover {
  background: var(--header-text);
  color: var(--header-bg);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 10px;
    width: 200px;
    background: var(--header-bg);
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    z-index: 1000;
    align-items: stretch;
    box-shadow: var(--shadow-menu);
  }
  .header-nav.active {
    display: flex;
  }
  .header-nav .b-btn,
  .header-nav .save-btn,
  .header-nav .view-btn,
  .header-nav .edit-btn,
  .header-nav .n-btn,
  .header-nav .theme-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 12px;
  }
  .header-nav .theme-btn {
    height: auto;
    border-radius: 25px;
  }
}
html {
  scrollbar-gutter: stable;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
}

.wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background-color: var(--surface-3);
  box-shadow: var(--shadow-wrapper);
}

.b-btn {
  background: transparent;
  color: var(--header-text);
  border: 2px solid var(--header-text);
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}
.b-btn:hover {
  background: var(--header-text);
  color: var(--header-bg);
}

.l-btn {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-invert);
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}
.l-btn:hover {
  background: var(--text);
  color: var(--surface);
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.welcome-block {
  background: var(--surface);
  border-radius: 12px;
  padding: 60px 50px;
  text-align: center;
  max-width: 600px;
  box-shadow: var(--shadow-xl);
}
.welcome-block .welcome-title {
  font-size: 36px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: bold;
}
.welcome-block .welcome-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.welcome-block .auth-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

@media (max-width: 768px) {
  .welcome-block {
    padding: 40px 30px;
  }
  .welcome-block .welcome-title {
    font-size: 28px;
  }
  .welcome-block .auth-buttons {
    flex-direction: column;
    gap: 15px;
  }
}
.auth-form {
  text-align: left;
}
.auth-form .form-group {
  margin-bottom: 25px;
}
.auth-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-form .form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-strong);
  border-radius: 8px;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s;
  background: var(--surface);
  color: var(--text);
}
.auth-form .form-group input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.auth-form .form-group input::-moz-placeholder {
  color: var(--text-subtle);
}
.auth-form .form-group input::placeholder {
  color: var(--text-subtle);
}
.auth-form .form-actions {
  margin-top: 30px;
}
.auth-form .form-actions .submit-btn {
  width: 100%;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
}

.messages-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 25px;
}

.error-message {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--danger-soft-3);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  color: var(--danger);
  padding: 12px 15px;
  font-size: 14px;
  flex: 1;
  animation: slideIn 0.3s ease-out;
}
.error-message .error-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.error-message #errorText {
  flex: 1;
  text-align: left;
}
.error-message .error-close {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.error-message .error-close:hover {
  transform: scale(1.2);
  color: var(--text);
}

.timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger-soft-3);
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  color: var(--danger);
  min-width: 50px;
  padding: 12px 10px;
  font-size: 18px;
  font-weight: 600;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/*# sourceMappingURL=index.css.map */