/* ==========================================================================
   Cyber Defense Master Theme - Login Page Stylesheet
   Compatible with Unify Framework & Bootstrap 5
   ========================================================================== */

@import url('style2.css');
@import url('cyber-toast.css');

:root {
  --auth-bg: #0a0a0a;
  --auth-card-bg: rgba(20, 18, 17, 0.88);
  --auth-card-border: rgba(255, 81, 1, 0.24);
  --auth-input-bg: #151312;
  --auth-input-border: rgba(255, 255, 255, 0.1);
  --brand-orange: #ff5101;
  --brand-orange-hover: #e04600;
  --brand-orange-glow: rgba(255, 81, 1, 0.45);
  --text-main: #f6f7f9;
  --text-muted: #9e9ea7;
}

body.auth-page {
  background-color: var(--auth-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Lighting */
.auth-ambient-glow {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 81, 1, 0.12) 0%, rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* Auth Navigation Header */
.auth-header-bar {
  padding: 24px 0;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-header-bar .brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.auth-nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  text-decoration: none;
}

.auth-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 81, 1, 0.3);
  transform: translateY(-1px);
}

/* Auth Main Section */
.auth-main-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 16px;
  position: relative;
  z-index: 5;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  background: var(--auth-card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--auth-card-border);
  border-radius: 24px;
  padding: 42px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 45px rgba(255, 81, 1, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-orange), transparent);
}

/* Auth Header inside Card */
.auth-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

/* Form Groups & Inputs */
.auth-form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 8px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper .input-leading-icon {
  position: absolute;
  left: 16px;
  color: #6b7280;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 3;
}

.auth-input {
  width: 100%;
  background: var(--auth-input-bg) !important;
  border: 1px solid var(--auth-input-border) !important;
  border-radius: 12px !important;
  padding: 13px 16px 13px 44px !important;
  font-size: 0.94rem;
  color: #ffffff !important;
  transition: all 0.25s ease;
  outline: none;
}

.auth-input.has-trailing-btn {
  padding-right: 46px !important;
}

.auth-input:focus {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 16px rgba(255, 81, 1, 0.25) !important;
}

.auth-input:focus ~ .input-leading-icon {
  color: var(--brand-orange);
}

.auth-input::placeholder {
  color: #4b5563;
}

/* Password Toggle Button */
.btn-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #6b7280;
  padding: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 3;
}

.btn-password-toggle:hover {
  color: #ffffff;
}

/* Form Validation Styles */
label.error {
  display: block !important;
  color: #ff5c5c !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
  letter-spacing: 0.01em;
}

input.error {
  border-color: #ff5c5c !important;
  box-shadow: 0 0 10px rgba(255, 92, 92, 0.2) !important;
}

/* Custom Checkbox */
.auth-remember-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-remember-check input[type="checkbox"] {
  accent-color: var(--brand-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-help-link {
  color: var(--brand-orange);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-help-link:hover {
  color: #ff7536;
  text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* Security Notice Box */
.auth-security-badge {
  margin-top: 26px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 0.8rem;
}

.auth-security-badge i {
  color: var(--brand-orange);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Footer */
.auth-footer-bar {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

.auth-footer-bar a {
  color: #9ca3af;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}

.auth-footer-bar a:hover {
  color: #ffffff;
}

@media (max-width: 576px) {
  .auth-card {
    padding: 30px 22px;
    border-radius: 18px;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}
