:root {
  --sea-deep: #0b3d5c;
  --sea: #1a6fa3;
  --sea-light: #4fa8d8;
  --sand: #f4ecd8;
  --ink: #1c2b33;
  --coral: #e0743a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(11, 61, 92, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--sea-deep) 0%, var(--sea) 45%, var(--sand) 45%);
  min-height: 100vh;
  color: var(--ink);
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--sea-deep);
}

.auth-card .subtitle {
  margin: 0 0 24px;
  color: #66798a;
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--sea-deep);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7e0e6;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--sea);
}

.photo-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sand) center/cover no-repeat;
  border: 2px solid #d7e0e6;
  flex-shrink: 0;
}

.photo-picker input[type="file"] {
  font-size: 13px;
}

button.btn {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--coral);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

button.btn:hover { opacity: 0.9; }
button.btn:disabled { opacity: 0.6; cursor: default; }

.error-box {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  background: #fdecea;
  color: #b3261e;
  border-radius: 8px;
  font-size: 13px;
}

.switch-link {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #66798a;
}

.switch-link a { color: var(--sea); text-decoration: none; font-weight: 600; }
.switch-link a:hover { text-decoration: underline; }
