:root {
  --navy: #000d44;
  --navy-soft: rgba(0, 13, 68, 0.75);
  --white: #ffffff;
  --panel-bg: rgba(255, 255, 255, 0.14);
  --panel-border: rgba(255, 255, 255, 0.65);
  --panel-border-strong: #10203c;
  --text-on-photo: #10203c;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-panel: 0 8px 30px rgba(0, 13, 68, 0.18);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--text-on-photo);
}

body.with-photo-bg {
  min-height: 100vh;
  background: #cfe3f2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.with-photo-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 13, 68, 0.08) 100%);
  pointer-events: none;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border-strong);
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: transparent;
  color: var(--navy);
}

.btn.danger {
  background: #7a1f1f;
  border-color: #5c1616;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
}

.form-field input[type='text'],
.form-field input[type='password'],
.form-field input[type='file'] {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 32, 60, 0.35);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.9);
}

.error-message {
  color: #7a1f1f;
  font-size: 13px;
  min-height: 18px;
}

.notice-message {
  color: #8a5a00;
  background: #fff6e5;
  border: 1px solid #f2d78c;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

.notice-message.success {
  color: #1d7a3a;
  background: #eaf7ee;
  border-color: #bfe6cb;
}

.notice-message:empty {
  display: none;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}
