/* ==== RESET ==== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: Verdana, Tahoma, Arial, sans-serif;
  background: linear-gradient(#d6ecff, #ffffff);
  color: #000;
}

/* ==== HEADER & NAV ==== */
.site-header {
  background: linear-gradient(#4aa3ff, #1e6fc9);
  border-bottom: 3px solid #154f91;
  padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 48px; height: 48px; object-fit: contain; }
.title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px #0d3d73;
  margin: 0;
}

.main-nav ul {
  display: flex; gap: 8px; list-style: none; margin: 0; padding: 0;
}
.nav-link {
  background: #2e8bff;
  border: 2px solid #154f91;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  cursor: default;
  opacity: 0.7;
}
.nav-link:hover {
  background: #57a9ff;
}

/* ==== PAGE LAYOUT ==== */
.auth-container {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 16px;
}

.auth-card {
  background: #ffffff;
  border: 3px solid #c0c0c0;
  border-radius: 10px;
  box-shadow: 3px 3px #d4d4d4;
  overflow: hidden;
}

.tabs {
  display: flex;
  background: #e5f1ff;
  border-bottom: 2px solid #c0c0c0;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-weight: bold;
  cursor: pointer;
}
.tab.active {
  background: #ffffff;
  border-bottom: 3px solid #4aa3ff;
}

/* ==== PANELS ==== */
.panel { display: none; padding: 20px; }
.panel.active { display: block; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }

/* ==== FORM ELEMENTS ==== */
.field { margin-bottom: 12px; }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.check { display: flex; align-items: center; gap: 8px; }

label {
  font-size: 13px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
input[type="color"] {
  width: 100%;
  padding: 8px;
  font-family: inherit;
  font-size: 13px;
  border: 2px solid #c0c0c0;
  border-radius: 6px;
  background: #f9f9f9;
}
input[type="color"] {
  padding: 2px;
  height: 36px;
  width: 50px;
}

input:focus, select:focus {
  border-color: #4aa3ff;
  outline: none;
  background: #ffffff;
}

/* ==== BUTTONS ==== */
.actions { display: flex; gap: 10px; margin-top: 10px; }
.btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 2px solid #154f91;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(#4aa3ff, #1e6fc9);
  color: #fff;
  text-shadow: 1px 1px #0d3d73;
}
.btn:hover {
  background: linear-gradient(#66b6ff, #2e8bff);
}
.btn.ghost {
  background: #f2f8ff;
  border: 2px solid #c0c0c0;
  color: #000;
  text-shadow: none;
}

/* ==== MESSAGES ==== */
.form-note { min-height: 1.2em; font-size: 12px; }
.form-note.error { color: red; }
.form-note.success { color: green; }

/* ==== AVATAR PREVIEW ==== */
.avatar-fieldset {
  border: 2px solid #c0c0c0;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px;
}
.avatar-fieldset legend {
  font-weight: bold;
  font-size: 13px;
}
.avatar-preview {
  background: #fff;
  border: 2px solid #c0c0c0;
  border-radius: 6px;
  height: 240px;
  margin-bottom: 10px;
}

/* ==== FOOTER ==== */
.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #333;
}
