/**
 * RTG Digital — Modern Login Page Styles
 * Clean, professional login with premium branding
 */

/* ===== VARIABLES ===== */
:root {
  --rtg-red: #D42B2B;
  --rtg-dark-red: #A81F1F;
  --rtg-black: #0A0A0A;
  --rtg-ink: #1A1A1A;
  --rtg-charcoal: #2D2D2D;
  --rtg-mid: #555555;
  --rtg-muted: #888888;
  --rtg-border: #DCDCDC;
  --rtg-light: #F5F4F0;
  --rtg-white: #FFFFFF;
  --rtg-gold: #C8952A;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body.login {
  background: #F8F7F3;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body.login::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 43, 43, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(200, 149, 42, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.login h1,
body.login h1 a {
  display: none !important;
}

/* ===== LOGIN WRAPPER ===== */
#login-wrap {
  display: flex;
  width: 100%;
  max-width: 1100px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: 550px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BRAND PANEL (LEFT) ===== */
#login-brand-panel {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #D42B2B 0%, #B91F1F 100%);
  color: white;
  padding: 70px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#login-brand-panel::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

#login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.brand-logo {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.brand-logo span {
  color: rgba(255, 255, 255, 0.85);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.brand-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 1;
  color: white;
}

.brand-tagline em {
  font-style: normal;
  color: rgba(255, 255, 255, 1);
}

.brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ===== LOGIN FORM (RIGHT) ===== */
#login {
  flex: 1;
  padding: 0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
}

#login-card-header-outer {
  width: 100%;
}

#login-card-header {
  padding: 0 60px 0 60px;
  text-align: center;
  margin-bottom: 20px;
}

.card-logo {
  font-size: 44px;
  font-weight: 800;
  color: #D42B2B;
  margin-bottom: 6px;
  line-height: 1;
}

.card-logo span {
  color: #D42B2B;
}

.card-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 28px;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 10px 0;
}

.card-hint {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.card-divider {
  height: 1px;
  background: #E0E0E0;
  margin: 30px 0;
}

/* ===== FORM STYLES ===== */
#loginform,
#registerform,
#lostpasswordform {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 60px 40px !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.login form {
  margin-top: 0 !important;
}

.user-pass-wrap,
.user-login-wrap,
.login-input-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.wp-pwd {
  position: relative;
}

.wp-pwd input[type="password"],
.wp-pwd input[type="text"] {
  width: 100% !important;
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #1A1A1A !important;
  background: #FAFAF8 !important;
}

.wp-pwd input[type="password"]:hover,
.wp-pwd input[type="text"]:hover {
  border-color: #D42B2B !important;
  background: white !important;
}

.wp-pwd input[type="password"]:focus,
.wp-pwd input[type="text"]:focus {
  border-color: #D42B2B !important;
  box-shadow: 0 0 0 4px rgba(212, 43, 43, 0.1) !important;
  outline: none !important;
  background: white !important;
}

.login label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100% !important;
  padding: 14px 16px !important;
  margin-bottom: 20px !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: 'Barlow', sans-serif !important;
  color: #1A1A1A !important;
  background: #FAFAF8 !important;
  transition: all 0.3s ease !important;
  height: 48px !important;
  line-height: 20px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.login input[type="text"]:hover,
.login input[type="password"]:hover,
.login input[type="email"]:hover {
  border-color: #D42B2B !important;
  background: white !important;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: #D42B2B !important;
  box-shadow: 0 0 0 4px rgba(212, 43, 43, 0.1) !important;
  outline: none !important;
  background: white !important;
}

/* ===== CHECKBOX ===== */
.login input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  accent-color: #D42B2B !important;
}

.login .forgetmenot {
  display: flex;
  align-items: center;
  margin: 16px 0 24px !important;
}

.login .forgetmenot label {
  margin: 0 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: #555 !important;
}

/* ===== BUTTON ===== */
.login .button-primary {
  width: 100% !important;
  padding: 14px 24px !important;
  background: #D42B2B !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(212, 43, 43, 0.25) !important;
  transition: all 0.3s ease !important;
  height: auto !important;
  text-shadow: none !important;
  margin-top: 10px !important;
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.login .button-primary:hover,
.login .button-primary:focus {
  background: #A81F1F !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(212, 43, 43, 0.35) !important;
}

.login .button-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(212, 43, 43, 0.25) !important;
}

/* Show/Hide Password Button */
.wp-pwd button,
.wp-pwd .button {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 0 !important;
  width: 48px !important;
  height: 48px !important;
  border: none !important;
  background: transparent !important;
  color: #888 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  font-size: 16px !important;
}

.wp-pwd button:hover,
.wp-pwd .button:hover {
  color: #D42B2B !important;
}

/* ===== FORM PARAGRAPHS ===== */
.login p {
  margin: 0 0 16px 0 !important;
  font-size: 14px !important;
  color: #555 !important;
}

.login p:last-child {
  margin-bottom: 0 !important;
}

/* ===== LINKS ===== */
.login #nav,
.login #backtoblog {
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

.login #nav a,
.login #backtoblog a {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #D42B2B !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  margin: 0 8px !important;
}

.login #nav a:hover,
.login #backtoblog a:hover {
  color: #A81F1F !important;
  text-decoration: underline !important;
}

/* ===== FOOTER LINKS ===== */
.login-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 40px;
  background: #F9F8F6;
  border-top: 1px solid #E0E0E0;
  flex-wrap: wrap;
}

.login-footer-links a {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-footer-links a:hover {
  color: #D42B2B;
  text-decoration: underline;
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
.login .message,
.login #login_error {
  border-left: 4px solid #D42B2B;
  background: rgba(212, 43, 43, 0.08);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 20px 0 !important;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: none !important;
  color: #1A1A1A;
}

.login .message {
  border-left-color: #C8952A;
  background: rgba(200, 149, 42, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #login-wrap {
    flex-direction: column;
    min-height: auto;
  }

  #login-brand-panel {
    flex: 0 0 auto;
    padding: 50px 40px;
  }

  #login {
    padding: 40px 0;
  }

  #login-card-header {
    padding: 0 40px;
  }

  #loginform,
  #registerform,
  #lostpasswordform {
    padding: 0 40px 30px !important;
  }

  .login-footer-links {
    padding: 16px 40px;
  }
}

@media (max-width: 600px) {
  body.login {
    padding: 16px;
  }

  #login-wrap {
    border-radius: 12px;
  }

  #login-brand-panel {
    padding: 40px 30px;
  }

  .brand-logo {
    font-size: 40px;
  }

  .brand-tagline {
    font-size: 26px;
  }

  #login-card-header {
    padding: 20px 30px 0;
  }

  .card-logo {
    font-size: 36px;
  }

  .card-title {
    font-size: 24px;
  }

  #loginform,
  #registerform,
  #lostpasswordform {
    padding: 0 30px 20px !important;
  }

  .card-divider {
    margin: 20px 0;
  }

  .login input[type="text"],
  .login input[type="password"],
  .login input[type="email"] {
    margin-bottom: 16px !important;
    padding: 12px 14px !important;
    height: 44px !important;
  }

  .login-footer-links {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 12px 30px;
  }
}

/* ===== ACCESSIBILITY ===== */
.login *:focus-visible {
  outline: 2px solid #D42B2B !important;
  outline-offset: 2px !important;
}

/* ===== PRINT ===== */
@media print {
  #login-brand-panel,
  .login-footer-links {
    display: none !important;
  }
}
