/* =========================================================
   MinockAuthCSS - Auth styling + runtime banner (FINAL)
   Piwigo 16.x + standard_pages auth screens
   ========================================================= */

/* ---------- MATCH MAIN SITE HEADER FONT (Bootstrap Darkroom) ----------
   Your main site header is:
   font-family: "PT Sans"... ; font-size: 20px; font-weight: 700; color: rgb(158,158,158)
*/
@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");

/* ---------- VARIABLES ---------- */
:root{
  --minock-font: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --minock-brand-color: rgb(158,158,158);
  --minock-accent: #2ecc71;
}

/* ---------- HARD RESET FOR AUTH PAGES ---------- */
html, body { height: 100% !important; }

body#theIdentificationPage,
body#theRegisterPage,
body#thePasswordPage {
  min-height: 100vh !important;
  margin: 0 !important;

  /* keep auth pages consistent */
  font-family: var(--minock-font) !important;
  -webkit-font-smoothing: antialiased !important;  /* match main site */
  text-transform: none !important;

  /* your background photo */
  background: url('/upload/background2.jpeg') no-repeat center center fixed !important;
  background-size: cover !important;
}

/* Create room ONLY when JS adds the bars */
body.minockAuthHasBars#theIdentificationPage,
body.minockAuthHasBars#theRegisterPage,
body.minockAuthHasBars#thePasswordPage {
  padding-top: 96px !important;
}

/* ---------- BANNER / BREADCRUMB (JS injected) ---------- */
#minockTopbar {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 22px !important;
  background: rgba(0,0,0,0.92) !important;
  z-index: 2147483647 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;

  font-family: var(--minock-font) !important;
  -webkit-font-smoothing: antialiased !important;
}

#minockTopbar .minockBrand {
  color: var(--minock-brand-color) !important;
  text-decoration: none !important;
  font-size: 20px !important;     /* match main header */
  font-weight: 700 !important;    /* match main header */
  letter-spacing: normal !important;
  font-family: var(--minock-font) !important;
  line-height: 52px;
}
#minockTopbar .minockBrand:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* optional help link */
#minockTopbar .minockHelp {
  color: #cfcfcf !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-family: var(--minock-font) !important;
}
#minockTopbar .minockHelp:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

#minockContextbar {
  position: fixed !important;
  top: 52px !important; left: 0 !important; right: 0 !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 22px !important;
  background: rgba(55,55,55,0.92) !important;
  z-index: 2147483646 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset !important;
  border-bottom: 1px solid rgba(0,0,0,0.35) !important;

  font-family: var(--minock-font) !important;
  -webkit-font-smoothing: antialiased !important;
}

#minockContextbar .minockCrumb {
  color: #d0d0d0 !important;
  font-size: 16px !important;
}
#minockContextbar .minockHome {
  color: #d0d0d0 !important;
  text-decoration: none !important;
}
#minockContextbar .minockHome:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}
#minockContextbar .minockSep {
  padding: 0 8px !important;
  color: #a9a9a9 !important;
}
#minockContextbar .minockHere {
  color: #d0d0d0 !important;
}

/* ---------- REMOVE STANDARD_PAGES WHITE “SHEET” ---------- */
#header-options,
#logo-section {
  display: none !important;
}

body#theIdentificationPage #mode,
body#theRegisterPage #mode,
body#thePasswordPage #mode,
body#theIdentificationPage #the_page,
body#theRegisterPage #the_page,
body#thePasswordPage #the_page {
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep main auth area transparent */
body#theIdentificationPage #login-form,
body#theRegisterPage #login-form,
body#thePasswordPage #login-form {
  background: transparent !important;
}

/* =========================================================
   FORM IS LOCKED — DO NOT CHANGE LOOK
   (Everything below is your known-good card styling)
   ========================================================= */

/* ---------- YOUR DARK FORM PANEL ---------- */
#login-form {
  display: flex !important;
  justify-content: center !important;
  padding: 28px 16px 18px !important;
}

#login-form > div {
  width: min(520px, calc(100vw - 48px)) !important;
  background: rgba(45,45,45,0.92) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.55) !important;
  padding: 22px 26px 18px !important;
}

/* Title */
#login-form h1 {
  margin: 0 0 18px !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #f0f0f0 !important;
  text-align: left !important;
}

/* Labels */
#login-form label {
  color: #cfcfcf !important;
  font-weight: 500 !important;
}

/* Input wrapper (NO border) */
#login-form .input-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
#login-form .input-container:focus,
#login-form .input-container:focus-within {
  border: none !important;
  box-shadow: none !important;
}

/* Inputs */
#login-form input[type="text"],
#login-form input[type="password"],
#login-form input[type="email"] {
  width: 100% !important;
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.25) !important;
  padding: 10px 8px !important;
  outline: none !important;
  font-family: var(--minock-font) !important;
}

/* Focus underline glow */
#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus,
#login-form input[type="email"]:focus {
  border-bottom: 2px solid var(--minock-accent) !important;
  box-shadow: 0 2px 8px rgba(46,204,113,0.35) !important;
}

/* Icons */
#login-form .gallery-icon-user,
#login-form .gallery-icon-lock,
#login-form .gallery-icon-eye {
  color: rgba(255,255,255,0.65) !important;
}

/* Checkbox */
#login-form .remember-me-container { margin-top: 10px !important; }
#login-form input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #22c7b8 !important;
}

/* Submit button */
#login-form input[type="submit"],
#login-form input[type="submit"].btn {
  display: block !important;
  width: 170px !important;
  margin: 14px auto 0 !important;
  background: #5a5a5a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
  font-family: var(--minock-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
#login-form input[type="submit"]:hover { filter: brightness(1.12) !important; }

/* Links inside the card */
#login-form .secondary-links,
#login-form .secondary-links a {
  color: #d6d6d6 !important;
}
#login-form .secondary-links a:hover {
  color: #ffffff !important;
}

/* Return to gallery: make SAME color as "Don't have an account..." */
#return-to-gallery {
  display: inline-block !important;
  margin: 14px auto 0 !important;
  color: #d6d6d6 !important;          /* <-- changed */
  font-weight: 400 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65) !important;
}
#return-to-gallery:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* ---------- OPTIONAL BUT RECOMMENDED: subtle glass blur (4 lines) ----------
   Uncomment if you want it; it should NOT change layout, just adds blur.
*/
#login-form > div{
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Mobile */
@media (max-width: 720px) {
  #minockTopbar, #minockContextbar { padding: 0 14px !important; }
  #minockTopbar .minockBrand { font-size: 18px !important; } /* keep close on mobile */
  #minockContextbar .minockCrumb { font-size: 14px !important; }
  #login-form > div {
    width: calc(100vw - 32px) !important;
    padding: 18px 16px 14px !important;
    border-radius: 14px !important;
  }
}

/* Safari-visible “premium” motion: slow zoom + subtle pan */
body#theIdentificationPage,body#theRegisterPage,body#thePasswordPage{position:relative !important;background:none !important;overflow:hidden !important;}
body#theIdentificationPage::before,body#theRegisterPage::before,body#thePasswordPage::before{
  content:""; position:fixed; inset:-6vh -6vw; z-index:0;
  background:url('/upload/background2.jpeg') center/cover no-repeat;
  transform:translate3d(0,0,0) scale(1.02);
  will-change:transform;
  animation:minockKB 90s ease-in-out infinite alternate;
  filter:brightness(.92);
}
#the_page,#mode{position:relative !important; z-index:1 !important; background:transparent !important;}
@keyframes minockKB{
  from{transform:translate3d(-1.2vw,-1.2vh,0) scale(1.05);}
  to  {transform:translate3d( 1.2vw, 1.2vh,0) scale(1.18);}
}

/* =========================================================
   REGISTER PAGE OVERRIDES (scoped, does not touch login)
   ========================================================= */

/* Hide standard_pages header/logo on Register too (matches Login) */
body#theRegisterPage #header-options,
body#theRegisterPage #logo-section{
  display: none !important;
}

/* Transparent page wrapper (matches Login) — BUT keep background image layer */
body#theRegisterPage #mode{
  background: url('/upload/background2.jpeg') no-repeat center center fixed !important;
  background-size: cover !important;
  box-shadow: none !important;
}
body#theRegisterPage #the_page{
  background: transparent !important;
  box-shadow: none !important;
}

/* Center the register card like login */
body#theRegisterPage #register-form{
  display: flex !important;
  justify-content: center !important;
  padding: 28px 16px 18px !important;
  background: transparent !important;
}

/* Card container (same look as login card) */
body#theRegisterPage #register-form > div{
  width: min(520px, calc(100vw - 48px)) !important;
  background: rgba(45,45,45,0.92) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 34px rgba(0,0,0,0.55) !important;
  padding: 22px 26px 18px !important;

  /* Glass effect (card only) */
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

/* Title */
body#theRegisterPage #register-form h1{
  margin: 0 0 18px !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #f0f0f0 !important;
  text-align: left !important;
  font-family: var(--minock-font) !important;
}

/* Labels */
body#theRegisterPage #register-form label{
  color: #cfcfcf !important;
  font-weight: 500 !important;
  font-family: var(--minock-font) !important;
}

/* Remove theme "white field" wrappers/borders */
body#theRegisterPage #register-form .input-container,
body#theRegisterPage #register-form .input-container:focus,
body#theRegisterPage #register-form .input-container:focus-within{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Inputs: underline only */
body#theRegisterPage #register-form input[type="text"],
body#theRegisterPage #register-form input[type="password"],
body#theRegisterPage #register-form input[type="email"]{
  width: 100% !important;
  background: transparent !important;
  color: #ffffff !important;

  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.25) !important;

  padding: 10px 8px !important;
  outline: none !important;

  font-family: var(--minock-font) !important;
}

/* Kill any orange focus outline/box */
body#theRegisterPage #register-form input:focus{
  outline: none !important;
  box-shadow: none !important;
}

/* Green focus underline + glow */
body#theRegisterPage #register-form input[type="text"]:focus,
body#theRegisterPage #register-form input[type="password"]:focus,
body#theRegisterPage #register-form input[type="email"]:focus{
  border-bottom: 2px solid var(--minock-accent) !important;
  box-shadow: 0 2px 8px rgba(46,204,113,0.35) !important;
}

/* Fix first field underline */
body#theRegisterPage #register-form input{
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.25) !important;
}

/* Icons (user/lock/eye) */
body#theRegisterPage #register-form .gallery-icon-user,
body#theRegisterPage #register-form .gallery-icon-lock,
body#theRegisterPage #register-form .gallery-icon-eye{
  color: rgba(255,255,255,0.65) !important;
}

/* Register button: match login (gray, not orange) */
body#theRegisterPage #register-form input[type="submit"],
body#theRegisterPage #register-form input[type="submit"].btn{
  display: block !important;
  width: 170px !important;
  margin: 14px auto 0 !important;

  background: #5a5a5a !important;
  color: #ffffff !important;

  border: none !important;
  border-radius: 10px !important;

  padding: 10px 14px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;

  font-family: var(--minock-font) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
body#theRegisterPage #register-form input[type="submit"]:hover{
  filter: brightness(1.12) !important;
}

/* Links inside the card */
body#theRegisterPage #register-form .secondary-links,
body#theRegisterPage #register-form .secondary-links a,
body#theRegisterPage #register-form a{
  color: #d6d6d6 !important;
}
body#theRegisterPage #register-form a:hover{
  color: #ffffff !important;
}

/* Return to gallery: match card links */
body#theRegisterPage #return-to-gallery{
  color: #d6d6d6 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65) !important;
}
body#theRegisterPage #return-to-gallery:hover{
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 720px){
  body#theRegisterPage #register-form > div{
    width: calc(100vw - 32px) !important;
    padding: 18px 16px 14px !important;
    border-radius: 14px !important;
  }
}

/* =========================================================
   OPTIONAL POLISH (REGISTER PAGE)
   Add these at the VERY END
   ========================================================= */

/* Improve helper text readability */
body#theRegisterPage #register-form .description,
body#theRegisterPage #register-form small {
  color: rgba(255,255,255,0.65) !important;
  font-weight: 500 !important;
  font-family: var(--minock-font) !important;
}

/* Slightly tighten card spacing */
body#theRegisterPage #register-form > div{
  padding: 20px 26px 16px !important;
}

/* Match "Sign in" link tone */
body#theRegisterPage #register-form p,
body#theRegisterPage #register-form p a{
  color: #d6d6d6 !important;
}

/* Slightly stronger register button */
body#theRegisterPage #register-form input[type="submit"]{
  background:#5f5f5f !important;
  box-shadow:0 6px 14px rgba(0,0,0,0.35) !important;
}

body#theRegisterPage #register-form input[type="submit"]:hover{
  background:#6a6a6a !important;
}

body#theRegisterPage #the_page,
body#theRegisterPage #register-form{
  position: relative;
  z-index: 1;
}

/* Darken background slightly so card pops */
body#theRegisterPage::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.28);
  pointer-events:none;
  z-index: 0;
  display:block;
}

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

body#theRegisterPage #register-form > div{
  animation:minockCardFade .45s ease-out;
}

/* =========================================================
   REGISTER: label text cleanup (CSS-only, scoped)
   Add at VERY END of file
   ========================================================= */

/* 1) Email label: remove the "(useful...)" helper */
body#theRegisterPage #register-form label[for="mail_address"]{
  font-size: 0 !important; /* hide original label text */
}
body#theRegisterPage #register-form label[for="mail_address"]::after{
  content: "Email address" !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cfcfcf !important;
  font-family: var(--minock-font) !important;
}

/* 2) Remove the * from First/Last Name labels */
body#theRegisterPage #register-form label[for="ucf_2b1106d1e0"],
body#theRegisterPage #register-form label[for="ucf_1c4eeb762d"]{
  font-size: 0 !important; /* hide original */
}
body#theRegisterPage #register-form label[for="ucf_2b1106d1e0"]::after{
  content: "First Name" !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cfcfcf !important;
  font-family: var(--minock-font) !important;
}
body#theRegisterPage #register-form label[for="ucf_1c4eeb762d"]::after{
  content: "Last Name" !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cfcfcf !important;
  font-family: var(--minock-font) !important;
}

/* 3) Replace "* Required fields" with "All fields are required" */
body#theRegisterPage #register-form label:not([for]){
  font-size: 0 !important; /* hide original */
}
body#theRegisterPage #register-form label:not([for])::after{
  content: "All fields are required" !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.60) !important;
  font-family: var(--minock-font) !important;
}

/* =========================================================
   AUTH INPUT TEXT SIZE (Login + Register)
   Add at VERY END
   ========================================================= */

body#theIdentificationPage #login-form input,
body#theRegisterPage      #register-form input{
  font-size: 14px !important;
  line-height: 1.4 !important;
  color:#cfcfcf !important;
}

body#theIdentificationPage #login-form input::placeholder,
body#theRegisterPage      #register-form input::placeholder{
  font-size: 14px !important;
  color:#cfcfcf !important;
}
