/**
 * Minarie Spa - Login Page Styles
 * Matches Figma design: Website_Minarie-2 (node 434-18938)
 */

/* Font Face Declarations */
@font-face {
  font-family: 'SVN-Ivy Presto Display';
  src: url('/wp-content/themes/minarie/admin/fonts/SVN-IvyPrestoDisplay-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/wp-content/themes/minarie/admin/fonts/Manrope-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/wp-content/themes/minarie/admin/fonts/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-deep-blue: #305FAF;
  --primary-soft-sky-blue: #8AB9F7;
  --neutral-600: #6C757D;
  --white: #FFFFFF;
  --golden: #B17703;
}

/* ============================================
   LOGIN PAGE BACKGROUND
   ============================================ */

body.login {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(138, 185, 247, 1) 0%,
    rgba(48, 95, 175, 1) 100%
  ) !important;
  backdrop-filter: blur(106px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative elements */
body.login::before {
  content: '';
  position: absolute;
  left: -299px;
  top: -307px;
  width: 675px;
  height: 675px;
  background: var(--primary-soft-sky-blue);
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
}

body.login::after {
  content: '';
  position: absolute;
  left: 232px;
  bottom: -100px;
  width: 1014px;
  height: 150px;
  background: var(--white);
  border-radius: 50%;
  filter: blur(200px);
  pointer-events: none;
}

/* ============================================
   LOGIN FORM CONTAINER
   ============================================ */

#login {
  position: relative;
  z-index: 100;
  width: 570px !important;
  background: #FFFFFF !important;
  border-radius: 30px !important;
  box-shadow: 2px 6px 20px 0px rgba(0, 0, 0, 0.25) !important;
  padding: 50px 40px !important;
  margin: 0 auto !important;
}

/* ============================================
   LOGO & TITLE
   ============================================ */

#login h1 a {
  background-image: url('/wp-content/themes/minarie/admin/images/logo-minarie.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 132px !important;
  height: 132px !important;
  display: block !important;
  margin: 0 auto 20px auto !important;
  text-indent: -9999px !important;
}

/* Custom title */
#login h1::after {
  content: 'MINARIE SPA';
  display: block;
  font-family: 'SVN-Ivy Presto Display', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.548;
  text-align: center;
  color: var(--primary-deep-blue);
  margin-top: 20px;
}

/* ============================================
   FORM STYLING
   ============================================ */

#loginform {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide labels */
#loginform label {
  display: none !important;
}

/* Input fields */
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100% !important;
  background: var(--white) !important;
  border: 1px solid var(--primary-soft-sky-blue) !important;
  border-radius: 15px !important;
  padding: 20px 28px !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 300 !important;
  font-size: 16px !important;
  line-height: 1.366 !important;
  color: var(--neutral-600) !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  margin-bottom: 20px !important;
}

#loginform input:focus {
  outline: none !important;
  border-color: var(--primary-deep-blue) !important;
  box-shadow: 0 0 0 3px rgba(48, 95, 175, 0.1) !important;
}

#loginform input::placeholder {
  color: var(--neutral-600) !important;
  opacity: 1 !important;
}

/* Submit button */
#wp-submit {
  width: 100% !important;
  background: var(--primary-deep-blue) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 20px 60px !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 1.366 !important;
  color: var(--white) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  height: auto !important;
}

#wp-submit:hover {
  background: #1e3a6d !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(48, 95, 175, 0.4);
}

/* Hide remember me and lost password */
.forgetmenot,
#nav,
#backtoblog {
  display: none !important;
}

/* Submit button container */
.submit {
  padding: 0 !important;
  margin-top: 30px !important;
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */

#login_error,
.message,
.success {
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin-bottom: 20px !important;
  border-left: 4px solid var(--primary-deep-blue) !important;
}

#login_error {
  border-left-color: #dc3545 !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  #login {
    width: 90% !important;
    max-width: 500px !important;
    padding: 30px 25px !important;
  }

  #login h1::after {
    font-size: 32px;
  }

  #wp-submit {
    padding: 16px 40px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 480px) {
  #login {
    padding: 25px 20px !important;
  }

  #login h1 a {
    width: 100px !important;
    height: 100px !important;
  }

  #login h1::after {
    font-size: 28px;
  }

  #loginform input[type="text"],
  #loginform input[type="password"] {
    padding: 16px 20px !important;
    font-size: 14px !important;
  }

  #wp-submit {
    font-size: 18px !important;
    padding: 16px 30px !important;
  }
}

/* ============================================
   HIDE LANGUAGE SWITCHER
   ============================================ */

.language-switcher,
#login .language-switcher,
.wp-login-language-switcher,
body.login .language-switcher {
  display: none !important;
}

/* ============================================
   PASSWORD TOGGLE BUTTON
   ============================================ */

.login .button.wp-hide-pw {
  position: absolute !important;
  right: 8px !important;
  top: 10px !important;
}
