/* Authentication Pages Styles - PRAUME */

/* Auth Body */
.auth-body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-body.admin-auth {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 50%, #1a1a1a 100%);
}

/* Auth Header */
.auth-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 25px;
  background: transparent;
}

.auth-header .logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
}

.auth-header .admin-badge {
  background: linear-gradient(135deg, #f5a623, #e09612);
  color: #000;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* Auth Container */
.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 30px;
}

/* Auth Card */
.auth-card {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-card.admin-card {
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(245, 166, 35, 0.05);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 35px;
}

.auth-card-header .admin-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.1));
  border: 2px solid rgba(245, 166, 35, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #f5a623;
}

.auth-card-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.auth-card-header p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.auth-form .form-group {
  margin: 0;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 8px;
}

.input-group {
  position: relative;
  display: block;
}

.input-group i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

/* Add padding-right for inputs with toggle-password button */
.input-group .toggle-password ~ input,
.input-group input:has(~ .toggle-password) {
  padding-right: 46px;
}

.input-group input:focus {
  outline: none;
  border-color: #f5a623;
  background: rgba(255,255,255,0.08);
}

.input-group input::placeholder {
  color: #555;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
}

.toggle-password:hover {
  color: #f5a623;
}

.toggle-password i {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Password Strength */
.password-strength {
  height: 4px;
  border-radius: 2px;
  margin-top: 8px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.password-strength .strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.password-strength.weak .strength-bar {
  width: 25%;
  background: #ef4444;
}

.password-strength.fair .strength-bar {
  width: 50%;
  background: #f59e0b;
}

.password-strength.good .strength-bar {
  width: 75%;
  background: #10b981;
}

.password-strength.strong .strength-bar {
  width: 100%;
  background: #22c55e;
}

/* Checkbox */
.checkbox-group {
  margin: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #aaa;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input {
  display: none;
}

.checkbox-label .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
  background: #f5a623;
  border-color: #f5a623;
}

.checkbox-label input:checked + .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: #000;
}

.checkbox-label a {
  color: #f5a623;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.forgot-link {
  font-size: 13px;
  color: #f5a623;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #e09612;
  text-decoration: underline;
}

/* Buttons */
.btn-block {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #f5a623, #e09612);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e09612, #c98a0f);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(245, 166, 35, 0.2);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #555;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* Social Login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.social-btn.google {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.social-btn.google:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.social-btn.facebook {
  background: rgba(66, 103, 178, 0.2);
  border: 1px solid rgba(66, 103, 178, 0.3);
  color: #4267B2;
}

.social-btn.facebook:hover {
  background: rgba(66, 103, 178, 0.3);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.auth-footer p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.auth-footer a {
  color: #f5a623;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Security Notice (Admin) */
.security-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #f5a623;
}

.security-notice i {
  font-size: 14px;
}

/* Auth Features */
.auth-features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
}

.feature-item i {
  color: #f5a623;
  font-size: 16px;
}

/* Alert Messages */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert i {
  font-size: 16px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #22c55e;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.active {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #ef4444;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 25px;
  }

  .auth-form .form-row {
    grid-template-columns: 1fr;
  }

  .social-login {
    grid-template-columns: 1fr;
  }

  .auth-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
