/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:ital,wght@0,700;0,800;1,700&display=swap');

:root {
  --blue:     #1a56db;
  --blue-dk:  #1e429f;
  --blue-lt:  #ebf5ff;
  --accent:   #06b6d4;
  --text:     #111827;
  --muted:    #6b7280;
  --border:   #e5e7eb;
  --bg:       #f3f4f6;
  --white:    #ffffff;
  --gold:     #f59e0b;
  --red:      #ef4444;
  --green:    #10b981;
  --card-r:   18px;
}

body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d1117;
  overflow: hidden;
  position: relative;
}

/* ── ANIMATED BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 20% 20%, rgba(26,86,219,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 80% 80%, rgba(6,182,212,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 60% 10%, rgba(139,92,246,0.1) 0%, transparent 70%);
  z-index: 0;
  animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.06) rotate(1deg); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

/* ── CARD ── */
.login-container {
  position: relative;
  z-index: 10;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(26,86,219,0.15),
    0 32px 64px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.07);
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── LOGO ── */
.logo {
  text-align: center;
  margin-bottom: 32px;
}
.logo h1 {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.logo h1 span {
  color: var(--accent);
}
.logo p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* ── FORM ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── INPUT GROUP ── */
.input-group {
  position: relative;
}
.input-group input {
  width: 100%;
  padding: 14px 16px 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.input-group input::placeholder { color: rgba(255,255,255,0.25); }
.input-group input:focus {
  border-color: var(--blue);
  background: rgba(26,86,219,0.08);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
.input-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  transition: 0.25s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  background: transparent;
  padding: 0 4px;
}
.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: #111827;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── ROLE SELECT ── */
.role-select {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.role-select > label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px;
}
.role-select select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,0.75);
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.role-select select:focus {
  border-color: var(--blue);
  background-color: rgba(26,86,219,0.08);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
.role-select select option {
  background: #1f2937;
  color: #fff;
}

/* ── BUTTON ── */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: 0.25s;
  letter-spacing: 0.3px;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,0.45);
}
button[type="submit"]:hover::before { opacity: 1; }
button[type="submit"]:active { transform: translateY(0); }

/* ── LINK ── */
.link {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.link a:hover { color: #67e8f9; }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.divider span {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .login-container {
    padding: 32px 24px;
    border-radius: 20px;
    margin: 16px;
  }
  .logo h1 { font-size: 28px; }
}

/* ── WORKER DASHBOARD LEGACY STYLES ── */
textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  resize: none;
  height: 80px;
  font-family: 'Outfit', sans-serif;
}
input[type="file"] { margin: 10px 0; }

.topbar {
  background: linear-gradient(135deg, var(--blue), var(--blue-dk));
  color: white;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-container {
  display: flex;
  padding: 20px;
  gap: 20px;
}
.profile-card {
  width: 250px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  height: fit-content;
}
.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-content { flex: 1; }
.section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}
#gallery img, #gallery video {
  width: 120px;
  margin: 10px;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .profile-container { flex-direction: column; }
  .profile-card { width: 100%; }
}