/* assets/css/auth.css */
/* Styling khusus untuk halaman login, register, forgot password */

/* Auth Wrap - Background gradient */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight) 280px, var(--chalk) 280px);
  padding: 40px 20px;
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 440px;
}

/* Auth Header */
.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-head .dot {
  width: 16px;
  height: 16px;
  background: var(--amber);
  margin: 0 auto 16px;
  border-radius: 4px;
  transform: rotate(45deg);
}

.auth-head h1 {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-head h1 i {
  color: var(--amber);
  margin-right: 10px;
}

.auth-head p {
  color: #B8BFCF;
  font-size: 15px;
  margin: 0;
}

/* Form Card */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(18, 33, 61, 0.15);
}

/* Form Group */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--midnight);
}

.form-group label i {
  color: var(--amber-dark);
  margin-right: 8px;
  width: 16px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #FBFAF6;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.12);
}

.form-group input::placeholder {
  color: #B0B5BF;
}

.form-group .hint {
  margin-top: 6px;
  font-size: 13px;
}

.form-group .hint a {
  color: var(--amber-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.form-group .hint a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* Google Button */
.btn-google {
  background: #fff;
  color: #5F6368;
  border: 1.5px solid #DADCE0;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}

.btn-google:hover {
  background: #F8F9FA;
  border-color: #C5C9D0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google:active {
  transform: scale(0.98);
}

.btn-google svg {
  flex-shrink: 0;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.divider:not(:empty)::before {
  margin-right: 16px;
}

.divider:not(:empty)::after {
  margin-left: 16px;
}

.divider span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Auth Switch Links */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.auth-switch a {
  color: var(--amber-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-switch a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.auth-switch i {
  margin-right: 6px;
  color: var(--ink-soft);
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.alert-success {
  background: #E7F5EE;
  color: #1C6B47;
  border-color: #BFE3D2;
}

.alert-danger {
  background: #FBEAE9;
  color: #9C2F28;
  border-color: #F3C7C4;
}

.alert strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.alert ul {
  margin: 4px 0 0;
  padding-left: 20px;
}

.alert ul li {
  list-style: none;
  margin: 2px 0;
}

.alert ul li i {
  margin-right: 6px;
  width: 16px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--amber);
  color: var(--midnight);
}

.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 169, 59, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 480px) {
  .auth-wrap {
    padding: 20px 16px;
  }
  
  .form-card {
    padding: 24px 18px;
  }
  
  .auth-head h1 {
    font-size: 22px;
  }
  
  .auth-head p {
    font-size: 14px;
  }
  
  .btn-google {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  .btn {
    font-size: 14px;
    padding: 11px 20px;
  }
}