/* ============================================================
   Auth Page Styles (Login)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body.auth-page {
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  background: #0F2347;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Left decorative panel */
.auth-left {
  flex: 1;
  background: linear-gradient(150deg, #1B3A6B 0%, #0F2347 60%, #0a1a35 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}
/* Top section — 22% */
.auth-left-top {
  height: 22%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 2rem;
  position: relative; z-index: 1;
}
/* Middle section — 73% */
.auth-left-middle {
  height: 73%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 2rem 1rem;
  position: relative;
  z-index: 1;
}
.auth-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, #C9982A, #FFD700, #4F46E5, #06B6D4, #C9982A);
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  box-shadow: 0 0 20px rgba(201,152,42,.55), 0 0 40px rgba(79,70,229,.35), 0 0 60px rgba(6,182,212,.2);
}
@keyframes gradientBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.auth-left-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 15px;
  pointer-events: none;
}
/* Bottom section — 5% */
.auth-left-bottom {
  height: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  color: rgba(255,255,255,.35);
  position: relative; z-index: 1;
}
.auth-left-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.auth-left-bottom a:hover { color: #C9982A; }
.auth-seal {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(201,152,42,.15);
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-left-title {
  font-size: 2rem; font-weight: 800;
  color: #fff; text-align: left;
  line-height: 1.25;
}

/* Right form panel */
.auth-right {
  width: 440px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-shadow: -10px 0 40px rgba(0,0,0,.3);
}
.auth-form-title   { font-size:1.4rem; font-weight:800; color:#1A202C; }
.auth-form-sub     { font-size:.82rem; color:#718096; margin-top:.3rem; margin-bottom:2rem; }

.auth-form-group   { margin-bottom:1.1rem; width:100%; }
.auth-label {
  display: block;
  font-size: .75rem; font-weight: 600;
  color: #4A5568; margin-bottom: .4rem;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: .75rem; top: 50%;
  transform: translateY(-50%);
  color: #A0AEC0; font-size: .85rem;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  padding: .6rem .75rem .6rem 2.3rem;
  font-size: .85rem; font-family: 'Inter', sans-serif;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  color: #1A202C;
  transition: all .2s;
  background: #F8FAFC;
}
.auth-input:focus {
  outline: none;
  border-color: #1B3A6B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27,58,107,.1);
}
.auth-input.error { border-color: #EF4444; }
.auth-input-toggle {
  position: absolute; right:.75rem; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer; color:#A0AEC0; font-size:.85rem;
}

.auth-btn {
  width: 100%;
  padding: .75rem;
  background: #1B3A6B;
  color: #fff;
  font-size: .9rem; font-weight: 700; font-family: 'Inter', sans-serif;
  border: none; border-radius: 8px;
  cursor: pointer; margin-top: .5rem;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.auth-btn:hover   { background: #0F2347; }
.auth-btn:disabled { opacity:.65; cursor:not-allowed; }

.auth-alert {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: 8px;
  font-size: .8rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
  border-left: 3px solid;
}
.auth-alert-danger  { background:#FEF2F2; color:#991B1B; border-color:#EF4444; }
.auth-alert-warning { background:#FFFBEB; color:#92400E; border-color:#F59E0B; }

.auth-footer { font-size:.72rem; color:#A0AEC0; margin-top:2rem; text-align:center; }

/* Responsive */
@media (max-width: 768px) {
  body.auth-page { flex-direction: column; }
  .auth-left     { display: none; }
  .auth-right    { width: 100%; padding: 2rem 1.5rem; box-shadow: none; }
}
