/* ==================================================
   LOGIN UI
================================================== */

/* ==================================================
   ACCOUNT
================================================== */

.mc-account-greeting {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.mc-account-status {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #222;
}

/* ==================================================
   BUTTONS
================================================== */

.mc-btn,
.mc-btn-secondary {
  display: block;

  width: 100%;

  padding: 0.875rem 1rem;
  margin-bottom: 1rem;

  border: 0;
  border-radius: var(--lpr-radius);

  text-align: center;
  text-decoration: none;

  font-weight: 600;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mc-btn {
  background: var(--lpr-blue);
  color: #fff;
}

.mc-btn:hover,
.mc-btn:focus-visible {
  background: #0069aa;
}

.mc-btn-secondary {
  background: #f3f4f6;
  color: var(--lpr-dark);
}

.mc-btn-secondary:hover,
.mc-btn-secondary:focus-visible {
  background: #e5e7eb;
}

/* ==================================================
   FORMS
================================================== */

.em-panel-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.em-panel-content label {
  display: block;
  margin-bottom: 0.35rem;

  font-weight: 600;
}

.em-panel-content input[type="text"],
.em-panel-content input[type="email"],
.em-panel-content input[type="password"],
.mc-input {
  width: 100%;

  padding: 0.75rem;

  border: 1px solid #d1d5db;
  border-radius: var(--em-radius);

  font-size: 1rem;
}

.em-panel-content .login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.em-panel-content input[type="submit"],
.em-panel-content .mc-btn {
  width: 100%;

  padding: 0.875rem 1rem;

  border: 0;
  border-radius: var(--em-radius);

  background: var(--em-blue);
  color: #fff;

  font-weight: 600;
  cursor: pointer;
}

.em-panel-content input[type="submit"]:hover,
.em-panel-content .mc-btn:hover {
  opacity: 0.9;
}

/* ==================================================
   SUCCESS MESSAGES
================================================== */

.mc-success {
  margin: 0 0 1.5rem;

  font-size: 1rem;
  font-weight: 600;

  color: #222;
}

.mc-text {
  margin: 0 0 0.75rem;

  line-height: 1.6;
}

.mc-text-last {
  margin-bottom: 1.75rem;
}

/* ==================================================
   READONLY FIELDS
================================================== */

.mc-input-readonly,
.em-panel-content input[readonly] {
  background: #f5f5f5;
  color: #6b7280;

  cursor: default;

  user-select: none;
}

.em-panel-content input[readonly]:focus {
  outline: none;
  border-color: #d1d5db;
  box-shadow: none;
}

/* ==================================================
   MESSAGE LIEN ENVOYE PAR MAIL
================================================== */

.mc-account-message h3 {
  margin: 0 0 1.5rem;
}

.mc-account-message p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.mc-account-message p:last-child {
  margin-bottom: 0;
}

/* ==================================================
   LOGIN ACTIONS
================================================== */

.mc-login-actions {
    margin: 0;
    text-align: center;
}

.mc-forgot-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .5rem;

    padding: .65rem 1rem;

    border-radius: 999px;

    background: #eef6fc;
    color: var(--lpr-blue);

    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.mc-forgot-password:hover,
.mc-forgot-password:focus-visible {
    background: var(--lpr-blue);
    color: #fff;
    text-decoration: none;
}

/* ==================================================
   LINKS
================================================== */

.em-panel-content a {
  transition: color 0.2s ease;
}

.em-panel-content a:hover,
.em-panel-content a:focus-visible {
  text-decoration: underline;
}

/* ==================================================
   PASSWORD FIELD
================================================== */

.mc-password-field {
  position: relative;
  display: block;
}

.mc-password-field .mc-input {
  width: 100%;
  padding-right: 3rem;
}

.mc-password-toggle {
  position: absolute;

  top: 50%;
  right: 0.75rem;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  padding: 0;

  border: 0;
  background: transparent;

  cursor: pointer;

  font-size: 1rem;
  line-height: 1;

  color: #6b7280;
}

.mc-password-toggle:hover,
.mc-password-toggle:focus-visible {
  color: var(--lpr-blue);
}

.mc-password-strength {
  margin-top: 0.75rem;
  min-height: 1.25rem;

  font-size: 0.9rem;
  font-weight: 600;
}

/* ==================================================
   ERRORS
================================================== */

.mc-error {
  margin-bottom: 1rem;

  padding: 1rem;

  border-left: 4px solid #dc2626;
  border-radius: var(--lpr-radius);

  background: #fef2f2;
  color: #991b1b;

  line-height: 1.6;
}

/* ==================================================
   PREMIUM
================================================== */

.mc-divider {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.mc-premium {
  text-align: center;
}

.mc-premium h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.mc-premium p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: #555;
}

/* ==================================================
   INFO MESSAGES
================================================== */

.mc-info {
  margin-bottom: 1rem;

  padding: 1rem;

  border-left: 4px solid var(--lpr-blue);
  border-radius: var(--lpr-radius);

  background: #eef6fc;
  color: #1e3a5f;

  line-height: 1.6;
}

/* ==================================================
   WORDPRESS MESSAGES
================================================== */

.login .message,
.login .success,
.login .error {
  margin-bottom: 1rem;

  padding: 1rem;

  border-radius: var(--lpr-radius);

  line-height: 1.6;
}

.login .message {
  border-left: 4px solid var(--lpr-blue);
  background: #eef6fc;
  color: #1e3a5f;
}

.login .success {
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.login .error {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| Login UI - Messages d'information
|--------------------------------------------------------------------------
*/

.mc-success {
    padding: 1.5rem 0;
    color: #222;
}

.mc-success h3 {
    margin: 0 0 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.mc-success p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.mc-success p:last-child {
    margin-bottom: 0;
}

.mc-success strong {
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Login UI - Lost Password
|--------------------------------------------------------------------------
*/

.mc-lostpassword {

    padding: 1.5rem 0;

}

.mc-lostpassword p {

    margin: 0 0 1.5rem;
    line-height: 1.7;

}

.mc-lostpassword label {

    display: block;
    margin-bottom: .5rem;
    font-weight: 600;

}

.mc-lostpassword .mc-input {

    margin-bottom: 1.5rem;

}

.mc-lostpassword .mc-btn {

    margin-top: .5rem;

}

/* ==================================================
   INFO REINITIALISATION
================================================== */

.mc-success h3 {
    margin: 0 0 1.5rem;
}

.mc-success p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.mc-success p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 480px) {

    .mc-account-greeting {
        font-size: 1rem;
    }

    .mc-btn,
    .mc-btn-secondary {
        font-size: 0.95rem;
    }

}
