/* ==========================================================================
   Filzra Resource — Modern Split-Column Login Page Styling (V6 Proportional)
   ========================================================================== */

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

body.login {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: row;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

/* =========================================
   LEFT SIDE: Branding Banner (55%)
   ========================================= */
body.login::before {
  content: '';
  flex: 5.5; /* 55% of the screen */
  background-color: #0d5f50; 
  /* F Watermark (SVG) + Grid lines */
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ctext x='100' y='100' font-family='Arial, sans-serif' font-weight='900' font-size='180' fill='rgba(255,255,255,0.03)' dominant-baseline='central' text-anchor='middle'%3EF%3C/text%3E%3C/svg%3E"),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80% auto, 40px 40px, 40px 40px;
  background-position: center, center, center;
  background-repeat: no-repeat, repeat, repeat;
  box-shadow: inset -10px 0 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

body.login::after {
  content: 'Filzra Resource · 全球文件模板资源库';
  position: fixed;
  bottom: 40px;
  left: 27.5vw; /* Center of the 55% left pane */
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 10;
  white-space: nowrap;
}

/* =========================================
   ABSOLUTE POSITIONING: Logo & Lang Switcher
   ========================================= */
.login h1 {
  position: fixed;
  top: 40px;
  left: 50px;
  z-index: 10;
  margin: 0;
  width: auto !important;
}

.login h1 a {
  background-image: none !important;
  width: auto !important;
  height: auto !important;
  font-size: 0;
  margin: 0;
  padding: 0;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.login h1 a::before {
  content: 'F';
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  background: #ffffff;
  color: #0d5f50;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login h1 a::after {
  content: 'Filzra';
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}




/* =========================================
   RIGHT SIDE: Login Form Panel (45%)
   ========================================= */
#login {
  flex: 4.5; /* 45% of the screen */
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh;
  padding: 40px !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Horizontally center form */
  overflow-y: auto; 
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* Ensure all children of #login are max 440px and left-aligned */
#login > * {
  width: 100%;
  max-width: 440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left;
}



/* Member login intro */
.member-login-intro {
  margin-bottom: 32px;
  padding: 0;
}

.member-login-kicker {
  color: #0d5f50;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.member-login-intro strong {
  display: block;
  margin-bottom: 12px;
  color: #1a1f2e;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.member-login-intro p {
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Form Container */
#loginform,
#registerform,
#lostpasswordform {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* WP Form Paragraphs */
.login form p {
  margin-bottom: 24px;
}
.login form p:last-child {
  margin-bottom: 0;
}

/* Labels */
#loginform label,
#registerform label,
#lostpasswordform label {
  color: #4a5568;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#registerform input[type="text"],
#registerform input[type="email"],
#lostpasswordform input[type="text"],
.login input[type="text"], 
.login input[type="password"], 
.login input[type="email"] {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #1a1f2e;
  padding: 14px 16px 14px 44px; /* Space for left icon */
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  background-repeat: no-repeat;
  height: 50px;
  transition: all 0.2s ease;
}

/* Handle Webkit Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* User/Email Icon */
input[name="log"],
input[name="user_login"],
input[name="user_email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") !important;
  background-position: 14px center !important;
  background-size: 20px !important;
}

/* Password Icon + Eye Icon */
input[name="pwd"],
input[name="pwd2"],
input[name="user_pass"] {
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231967d2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
  background-position: 14px center, calc(100% - 14px) center !important;
  background-size: 20px, 20px !important;
  padding-right: 44px; /* Space for eye icon */
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #0d5f50 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 95, 80, 0.1) !important;
}

/* Remember me */
.forgetmenot {
  margin-top: 20px;
  margin-bottom: 24px;
}

.forgetmenot label {
  font-size: 14px !important;
  color: #4a5568 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  font-weight: 500 !important;
  margin: 0 !important;
}

.forgetmenot input[type="checkbox"] {
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  background: #fff;
  flex-shrink: 0;
}

.forgetmenot input[type="checkbox"]:checked {
  background-color: #0d5f50;
  border-color: #0d5f50;
}

.forgetmenot input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Submit button */
#wp-submit {
  background: #0d5f50;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 0 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 50px;
  text-shadow: none;
  box-shadow: none;
}

#wp-submit:hover {
  background: #0a4a3f;
}

#wp-submit:active {
  transform: translateY(1px);
}

/* Navigation links */
#nav,
#backtoblog {
  margin-top: 24px;
  padding: 0;
}

#nav {
  margin-bottom: 30px;
}

#nav a,
#backtoblog a {
  color: #1967d2; /* Blue links */
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

#nav a:hover,
#backtoblog a:hover {
  text-decoration: underline;
}

#backtoblog a {
  color: #718096; /* Gray back link */
}

/* Messages */
.login .message,
.login .success,
.login #login_error {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  box-shadow: none;
  text-align: left;
}

.login .message,
.login .success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.login #login_error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* Hide some default WP elements */
.login form .submit {
    float: none;
    margin-top: 10px;
    padding: 0;
}

#reg_passmail {
    display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  body.login {
    flex-direction: column;
    overflow: auto;
  }
  body.login::before,
  body.login::after {
    display: none;
  }
  #login {
    width: 100% !important;
    flex: none;
    height: auto;
    min-height: 100vh;
    padding: 60px 24px !important;
    background: #f4f6f9;
    align-items: center;
  }
  
  /* Show logo inside the form on mobile */
  #login > h1 {
    display: block;
    position: static;
    margin: 0 auto 30px;
  }
  
  #login > h1 a::after {
    color: #1a1f2e;
  }
}
