/* CPH Player Auth Design v2.3 - presentation only. Authentication/processing untouched. */

:root{
  --cph-auth-accent:#138a62;
  --cph-auth-accent-hover:#0f704f;
  --cph-auth-border:#d7dedb;
  --cph-auth-text:#111918;
  --cph-auth-muted:#66736e;
}

body.cph-auth-login-page,
body.cph-auth-register-page{
  background:
    linear-gradient(rgba(226,235,231,var(--cph-auth-overlay)),rgba(226,235,231,var(--cph-auth-overlay))),
    var(--cph-auth-bg) center/cover fixed no-repeat,
    #e8efec;
}

/* Hide the theme's page title; the plugin form already has its own heading. */
body.cph-auth-login-page .wp-block-post-title,
body.cph-auth-register-page .wp-block-post-title,
body.cph-auth-login-page .entry-title,
body.cph-auth-register-page .entry-title{display:none!important;}

body.cph-auth-login-page main,
body.cph-auth-register-page main{padding-top:34px;padding-bottom:70px;}

body.cph-auth-login-page .cph-player-wrap,
body.cph-auth-register-page .cph-player-wrap{
  box-sizing:border-box;
  width:min(calc(100% - 32px),var(--cph-auth-width));
  margin:32px auto 0;
  padding:clamp(34px,5vw,60px);
  background:rgba(255,255,255,.98);
  border:1px solid rgba(18,35,29,.07);
  border-radius:26px;
  box-shadow:0 25px 70px rgba(22,45,37,.16);
}

body.cph-auth-login-page .cph-player-kicker,
body.cph-auth-register-page .cph-player-kicker{
  color:var(--cph-auth-accent);
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0 0 10px;
}

body.cph-auth-login-page .cph-player-wrap>h1,
body.cph-auth-register-page .cph-player-wrap>h1{
  margin:0 0 12px;
  color:var(--cph-auth-text);
  font-size:clamp(34px,4vw,50px);
  line-height:1.08;
  letter-spacing:-.03em;
}

body.cph-auth-login-page .cph-player-muted,
body.cph-auth-register-page .cph-player-muted{
  color:var(--cph-auth-muted);
  font-size:16px;
  line-height:1.65;
  margin:0 0 30px;
}

/* REGISTRATION FORM */
body.cph-auth-register-page .cph-player-form{
  display:grid;
  gap:20px;
  margin-top:28px;
}

body.cph-auth-register-page .cph-player-form label{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--cph-auth-text);
  font-size:15px;
  font-weight:700;
  line-height:1.35;
}

body.cph-auth-register-page .cph-player-form input:not([type=checkbox]):not([type=radio]),
body.cph-auth-register-page .cph-player-form select,
body.cph-auth-register-page .cph-player-form textarea{
  box-sizing:border-box;
  display:block;
  width:100%!important;
  min-width:0;
  min-height:58px;
  height:58px;
  padding:0 17px;
  margin:0;
  border:1px solid var(--cph-auth-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--cph-auth-text)!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.4!important;
  box-shadow:none!important;
  appearance:auto;
}

body.cph-auth-register-page .cph-player-form textarea{height:auto;min-height:120px;padding:15px 17px;}

body.cph-auth-register-page .cph-player-form input:focus,
body.cph-auth-register-page .cph-player-form select:focus,
body.cph-auth-register-page .cph-player-form textarea:focus,
body.cph-auth-login-page #loginform input[type=text]:focus,
body.cph-auth-login-page #loginform input[type=password]:focus{
  outline:3px solid rgba(19,138,98,.13)!important;
  border-color:var(--cph-auth-accent)!important;
}

body.cph-auth-register-page .cph-player-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

/* LOGIN FORM: wp_login_form() outputs #loginform, not .cph-player-form. */
body.cph-auth-login-page #loginform{
  display:grid;
  gap:0;
  margin:28px 0 0;
  padding:0;
  border:0;
  background:transparent;
}

body.cph-auth-login-page #loginform p{margin:0;}
body.cph-auth-login-page #loginform .login-username,
body.cph-auth-login-page #loginform .login-password{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 20px;
  color:var(--cph-auth-text);
  font-size:15px;
  font-weight:700;
  line-height:1.35;
}

body.cph-auth-login-page #loginform .login-username input,
body.cph-auth-login-page #loginform .login-password input{
  box-sizing:border-box;
  display:block;
  width:100%!important;
  min-width:0;
  height:58px!important;
  min-height:58px!important;
  padding:0 17px!important;
  margin:0!important;
  border:1px solid var(--cph-auth-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--cph-auth-text)!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:400!important;
  line-height:1.4!important;
  box-shadow:none!important;
}

body.cph-auth-login-page #loginform .login-remember{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  margin:0 0 22px;
  color:#27322e;
  font-size:15px;
  font-weight:500;
}

body.cph-auth-login-page #loginform .login-remember label{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  cursor:pointer;
}

body.cph-auth-login-page #loginform .login-remember input[type=checkbox]{
  width:18px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  accent-color:var(--cph-auth-accent);
}

body.cph-auth-login-page #loginform .login-submit{margin:0;}

body.cph-auth-login-page #loginform #wp-submit,
body.cph-auth-register-page .cph-player-form .cph-player-btn,
body.cph-auth-register-page .cph-player-form button{
  display:block;
  box-sizing:border-box;
  width:100%!important;
  min-height:58px;
  height:58px;
  padding:0 22px!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--cph-auth-accent)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer;
  box-shadow:none!important;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}

body.cph-auth-login-page #loginform #wp-submit:hover,
body.cph-auth-register-page .cph-player-form .cph-player-btn:hover,
body.cph-auth-register-page .cph-player-form button:hover{
  background:var(--cph-auth-accent-hover)!important;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(19,138,98,.18)!important;
}

body.cph-auth-login-page .cph-player-small,
body.cph-auth-register-page .cph-player-small{
  color:var(--cph-auth-muted);
  text-align:center;
  margin:22px 0 0;
  line-height:1.6;
  font-size:15px;
}

body.cph-auth-login-page .cph-player-small a,
body.cph-auth-register-page .cph-player-small a,
body.cph-auth-login-page .cph-player-alert a,
body.cph-auth-register-page .cph-player-alert a{
  color:var(--cph-auth-accent)!important;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

body.cph-auth-login-page .cph-player-alert,
body.cph-auth-register-page .cph-player-alert{
  margin:0 0 22px;
  padding:14px 16px;
  border-radius:12px;
  line-height:1.55;
}

body.cph-auth-login-page .cph-player-alert.error,
body.cph-auth-register-page .cph-player-alert.error{background:#fff1f1;color:#7d2020;}
body.cph-auth-login-page .cph-player-alert.success,
body.cph-auth-register-page .cph-player-alert.success{background:#eefaf4;color:#145b3d;}

@media (min-width:760px){
  body.cph-auth-register-page .cph-player-form>.cph-player-two{grid-column:1/-1;}
}

@media (max-width:759px){
  body.cph-auth-register-page .cph-player-two{grid-template-columns:1fr;gap:20px;}
}

@media (max-width:600px){
  body.cph-auth-login-page main,
  body.cph-auth-register-page main{padding-top:15px;}
  body.cph-auth-login-page .cph-player-wrap,
  body.cph-auth-register-page .cph-player-wrap{
    width:calc(100% - 20px);
    margin-top:15px;
    padding:30px 20px;
    border-radius:20px;
  }
  body.cph-auth-login-page .cph-player-wrap>h1,
  body.cph-auth-register-page .cph-player-wrap>h1{font-size:34px;}
}
