/*
Theme Name: Royawrites V2
Theme URI: https://royawrites.co
Description: Your Comprehensive Tech, Research & Managed Hosting Portal. A custom digital agency services theme built for Royawrites. It is not available for you to buy or download.
Author: Royawrites
Author URI: https://royawrites.co
Template: extendable
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royawrites-v2
*/


/* ====================================================
   HIDE DEFAULT EXTENDABLE THEME HEADER, FOOTER & NAV
   ==================================================== */
.wp-site-header,
header.wp-block-template-part,
.site-header,
header.site-header,
.wp-block-navigation,
.wp-site-footer,
footer.wp-block-template-part,
.site-footer,
footer.site-footer {
    display: none !important;
}


/*=========================================================
Global Text Selection Highlight Color
=========================================================*/
/* Standard browsers */
::selection {
    background-color: #008181;
    color: #ffffff; /* Sets the text color while highlighted */
}

/* Firefox support */
::-moz-selection {
    background-color: #008181;
    color: #ffffff;
}


/* ==========================================================================
   ROYAWRITES CLIENT AREA LOGIN PAGE (FRONTEND ONLY)
   Teal Card Background: #008181
   Prefix: .rwl-
   ========================================================================== */

.rwl-login-section {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f8fafc;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  box-sizing: border-box;
}

.rwl-login-section *,
.rwl-login-section *::before,
.rwl-login-section *::after {
  box-sizing: border-box;
}

.rwl-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* TEAL LOGIN CARD (#008181) */
.rwl-card {
  background: #008181;
  border-radius: 10px;
  padding: 40px 32px;
  box-shadow: 0 16px 36px rgba(0, 129, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rwl-header {
  text-align: center;
  margin-bottom: 28px;
}

.rwl-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.rwl-header p {
  font-size: 13px;
  color: #eaf9f9;
  line-height: 1.5;
  margin: 0;
}

/* FORM ELEMENTS */
.rwl-group {
  margin-bottom: 20px;
}

.rwl-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rwl-req {
  color: #00e6e6;
}

.rwl-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rwl-icon {
  position: absolute;
  left: 14px;
  color: #008181;
  font-size: 14px;
  z-index: 2;
}

.rwl-input {
  width: 100%;
  padding: 12px 42px 12px 38px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.rwl-input:focus {
  border-color: #00e6e6;
  box-shadow: 0 0 0 4px rgba(0, 230, 230, 0.25);
}

.rwl-input.rwl-error {
  border-color: #ef4444;
}

/* PASSWORD TOGGLE */
.rwl-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  z-index: 2;
}

.rwl-toggle-pwd:hover {
  color: #008181;
}

/* UTILITY ROW (CHECKBOX & FORGOT PASSWORD) */
.rwl-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
}

.rwl-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.rwl-checkbox {
  accent-color: #00e6e6;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.rwl-forgot-link {
  color: #eaf9f9;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.rwl-forgot-link:hover {
  color: #00e6e6;
}

/* SUBMIT BUTTON */
.rwl-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: #008181;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rwl-submit-btn:hover {
  background: #00e6e6;
  color: #042121;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 230, 230, 0.3);
}

/* FOOTER SECURITY NOTE */
.rwl-footer-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #eaf9f9;
}

/* ERROR ALERT BANNER */
.rwl-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: rwlFadeIn 0.3s ease-in-out;
}

.rwl-alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.rwl-alert-error i {
  color: #dc2626;
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes rwlFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE STYLING (991PX AND BELOW) - COMPACT & STACKED */
@media (max-width: 991px) {
  .rwl-login-section {
    padding: 120px 12px 30px;
    min-height: auto;
  }

  .rwl-container {
    max-width: 300px;
    width: 100%;
  }

  .rwl-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .rwl-header {
    margin-bottom: 18px;
  }

  .rwl-header h2 {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .rwl-header p {
    font-size: 11px;
    line-height: 1.4;
  }

  .rwl-group {
    margin-bottom: 12px;
  }

  .rwl-group label {
    font-size: 10px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
  }

  .rwl-input {
    padding: 9px 34px 9px 32px;
    font-size: 12px;
    border-radius: 8px;
  }

  .rwl-icon {
    left: 10px;
    font-size: 12px;
  }

  .rwl-toggle-pwd {
    right: 10px;
    font-size: 12px;
  }

  .rwl-utility-row {
    flex-direction: row !important; /* Forces horizontal side-by-side alignment */
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px;
    width: 100%;
  }

  .rwl-checkbox-label {
    font-size: 11px;
    white-space: nowrap; /* Keeps "Remember me" on one line */
  }

  .rwl-checkbox {
    width: 13px;
    height: 13px;
  }

  .rwl-forgot-link {
    font-size: 11px;
    white-space: nowrap; /* Keeps "Forgot Password?" on one line */
  }

  .rwl-submit-btn {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 8px;
  }

  .rwl-footer-note {
    margin-top: 14px;
    padding-top: 10px;
    font-size: 10px;
  }
}


/* ==========================================================================
   ROYAWRITES PASSWORD RESET PAGE (FRONTEND ONLY)
   Teal Card Background: #008181
   Prefix: .rwp-
   ========================================================================== */

.rwp-reset-section {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f8fafc;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  box-sizing: border-box;
}

.rwp-reset-section *,
.rwp-reset-section *::before,
.rwp-reset-section *::after {
  box-sizing: border-box;
}

.rwp-container {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

/* TEAL CARD (#008181) */
.rwp-card {
  background: #008181;
  border-radius: 10px;
  padding: 40px 32px;
  box-shadow: 0 16px 36px rgba(0, 129, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rwp-header {
  text-align: center;
  margin-bottom: 28px;
}

.rwp-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.rwp-header p {
  font-size: 13px;
  color: #eaf9f9;
  line-height: 1.5;
  margin: 0;
}

/* FORM ELEMENTS */
.rwp-group {
  margin-bottom: 20px;
}

.rwp-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rwp-req {
  color: #00e6e6;
}

.rwp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rwp-icon {
  position: absolute;
  left: 14px;
  color: #008181;
  font-size: 14px;
  z-index: 2;
}

.rwp-input {
  width: 100%;
  padding: 12px 18px 12px 38px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 5px;
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.rwp-input:focus {
  border-color: #00e6e6;
  box-shadow: 0 0 0 4px rgba(0, 230, 230, 0.25);
}

.rwp-input.rwp-error {
  border-color: #ef4444;
}

/* UTILITY ROW */
.rwp-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 12px;
}

.rwp-account-text {
  color: #eaf9f9;
  font-weight: 600;
}

.rwp-login-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rwp-login-link:hover {
  color: #00e6e6;
}

/* SUBMIT BUTTON */
.rwp-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: #008181;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rwp-submit-btn:hover {
  background: #00e6e6;
  color: #042121;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 230, 230, 0.3);
}

/* FOOTER SECURITY NOTE */
.rwp-footer-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #eaf9f9;
}

/* ALERT BANNERS */
.rwp-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: rwpFadeIn 0.3s ease-in-out;
}

.rwp-alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.rwp-alert-error i {
  color: #dc2626;
  font-size: 14px;
  flex-shrink: 0;
}

.rwp-alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.rwp-alert-success i {
  color: #16a34a;
  font-size: 14px;
  flex-shrink: 0;
}

@keyframes rwpFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE STYLING (991PX AND BELOW) */
@media (max-width: 991px) {
  .rwp-reset-section {
    padding: 120px 12px 30px;
    min-height: auto;
  }

  .rwp-container {
    max-width: 300px;
    width: 100%;
  }

  .rwp-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .rwp-header {
    margin-bottom: 18px;
  }

  .rwp-header h2 {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .rwp-header p {
    font-size: 11px;
    line-height: 1.4;
  }

  .rwp-group {
    margin-bottom: 12px;
  }

  .rwp-group label {
    font-size: 10px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
  }

  .rwp-input {
    padding: 9px 12px 9px 32px;
    font-size: 12px;
    border-radius: 8px;
  }

  .rwp-icon {
    left: 10px;
    font-size: 12px;
  }

  .rwp-utility-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px;
    width: 100%;
  }

  .rwp-account-text {
    font-size: 11px;
    white-space: nowrap;
  }

  .rwp-login-link {
    font-size: 11px;
    white-space: nowrap;
  }

  .rwp-submit-btn {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 8px;
  }

  .rwp-footer-note {
    margin-top: 14px;
    padding-top: 10px;
    font-size: 10px;
  }
}