/* ==========================================================================
   Your.Rentals — Login page (1:1 clone)
   Values mirror the computed styles of app.your.rentals/login
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../public/fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Inter 400/700 (Google Fonts build) — the live page loads these too and the browser
   prefers them for regular/bold text; keeps glyph rasterisation identical. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../public/fonts/Inter-Google-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../public/fonts/Inter-Google-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "icomoon";
  src: url("../public/fonts/icomoon-subset.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

:root {
  --brand-color-primary: #1056BE;
  --brand-color-primary-hover: #0D4598;
  --brand-color-primary-pressed: #0A3472;
  --tw-primary-700: #1056BE;
  --tw-neutral-300: #e5e7eb;
  --tw-neutral-1000: #111827;
  --line-color: #dce1e6;
  --muted: #999;
  --text: #333;
  --label: #555;
  --error: #d70000;
  --tablet-bg: #f5f9fd;
}

/* ---------- Reset / base (bootstrap 3 + app base) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 10px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  width: 100%;
  height: 100%;
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font: 16px Inter, Arial, "Lucida Grande", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) and (max-width: 991px) {
  body { background-color: var(--tablet-bg); }
}
@media (max-width: 768px) {
  body { background-color: #fff !important; }
}
a {
  color: var(--brand-color-primary);
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
}
a:hover { color: gray; text-decoration: none; }
a:focus { outline: 0; text-decoration: none; }
a:active { outline: 0; }
img { vertical-align: middle; border: 0; }
p { margin: 0 0 10px; }
h4, h5 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
  margin-top: 10px;
  margin-bottom: 10px;
}
h4 { font-size: 18px; }
h5 { font-size: 14px; }
strong { font-weight: 600; color: #555; }
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}
button, input {
  color: inherit;
  font: inherit;
  margin: 0;
  overflow: visible;
}
button {
  text-transform: none;
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}
input:focus { outline: none; }
input[type="checkbox"] {
  box-sizing: border-box;
  padding: 0;
  margin: 1px 0 0 -20px;
  line-height: normal;
  width: 16px !important;
  height: 16px !important;
}
input[type="checkbox"]:checked {
  accent-color: var(--brand-color-primary);
  border-color: var(--brand-color-primary);
}

.ng-hide { display: none !important; }

/* ---------- Layout shell ---------- */
#home-view.view, .full-height-width { height: 100%; width: 100%; }
body .view { height: 100%; }
.full-width { width: 100%; }
.shape.login-page {
  background: #fff;
  color: var(--tw-neutral-1000);
  width: 100%;
  height: 100%;
}

/* ---------- Bootstrap grid (only what the page uses) ---------- */
.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.container::before, .container::after,
.row::before, .row::after { content: " "; display: table; }
.container::after, .row::after { clear: both; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.row { margin-left: -15px; margin-right: -15px; }
.col-xs-6, .col-xs-12, .col-sm-6, .col-sm-12, .col-md-6, .col-md-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}
.col-xs-6 { float: left; width: 50%; }
.col-xs-12 { float: left; width: 100%; }
@media (min-width: 768px) {
  .col-sm-6 { float: left; width: 50%; }
  .col-sm-12 { float: left; width: 100%; }
}
@media (min-width: 992px) {
  .col-md-6 { float: left; width: 50%; }
  .col-md-12 { float: left; width: 100%; }
}
.hidden-small { display: block; }
.hidden-large { display: block; }
@media (max-width: 991px) { .hidden-small { display: none !important; } }
@media (min-width: 992px) { .hidden-large { display: none !important; } }

/* ---------- Tailwind-ish utilities used by the header ---------- */
.tw-flex { display: flex; }
.tw-items-center { align-items: center; }
.tw-justify-end { justify-content: flex-end; }
.tw-grow { flex-grow: 1; }
.tw-text-base { font-size: 16px; line-height: 24px; }
.tw-text-sm { font-size: 14px; line-height: 20px; }

/* ---------- Header ---------- */
.header-signup {
  z-index: 999;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  display: flex;
  min-height: 70px;
  width: 100%;
  background-color: #fff;
}
@media (max-width: 767px) {
  .header-signup { padding: 0; }
}
.header-signup a { display: block; }
.header-signup a div.yr-logo {
  float: left;
  background-repeat: no-repeat;
  margin: auto !important;
  cursor: pointer;
}
@media (max-width: 481px) {
  .header-signup a div.yr-logo {
    width: 32px;
    height: 32px;
    background-image: url("../public/images/yr-icon-logo.svg");
  }
}
@media (min-width: 480px) {
  .header-signup a div.yr-logo {
    width: 200px;
    height: 38px;
    background-image: url("../public/images/your.rentals-logo.svg");
  }
}
.hubspot-helper { display: flex; justify-content: flex-end; gap: 16px; }
.language-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--tw-neutral-1000);
  border: 1px solid var(--tw-neutral-300);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.language-switch img { width: 20px; height: 20px; display: block; }
.language-divider { height: 16px; width: 1px; background-color: var(--tw-neutral-300); }
.language-switch span { font-size: 16px; }

/* ---------- Sign-up / login container ---------- */
.signup { position: relative; }
@media (min-width: 768px) and (max-width: 991px) {
  .signup { background-color: var(--tablet-bg); width: auto; }
}
@media (max-width: 768px) {
  .signup { display: flex; align-items: center; height: 100vh; }
}
@media (max-width: 767px) {
  .container.signup { margin: 0; padding: 0; width: 100%; height: 100%; }
}
@media (max-width: 481px) {
  .signup { display: inline-block; }
}

.form-signup {
  max-width: 450px;
  margin: 0 auto;
  padding: 25px;
}
@media (min-width: 768px) and (max-width: 991px) {
  .form-signup { padding: 0; }
}
.form-signup h4 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.form-signup h5 {
  color: var(--text);
  margin: 0 0 20px;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  padding: 0 3.5rem;
}
.form-signup-main { padding: 6px 0; }
.form-signup-main p { font-size: 14px; }
.form-signup-main p a { color: var(--brand-color-primary); }
.form-signup-main p a:hover { color: var(--brand-color-primary-hover); }

.bottom-10 { margin-bottom: 10px; }

/* Alerts */
.alert-require { margin-top: 0; border: 0; color: var(--error); }
.alert-require p { margin: 0 !important; font-size: 14px; }
.alert-require p a,
.alert-require p a:hover { color: var(--error); text-decoration: underline !important; }
.alert-success-detail {
  border-radius: 5px;
  padding: 5px 10px;
  width: 100%;
  text-align: left;
  font-size: 14px;
  line-height: 18px;
  background-color: #ddf4e5;
  color: #449d44;
  margin-bottom: 10px;
}

/* ---------- Social buttons ---------- */
.social-access { width: 100%; height: auto; display: inline-block; }
.social-access a {
  height: 44px;
  width: 100%;
  display: inline-block;
  text-align: center;
  border-radius: 5px;
  font-size: 16px;
  margin: 0;
  line-height: 43px;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}
.social-access a.facebook { background-color: #3b5998; color: #fff; }
.social-access a.facebook img { width: 11px; float: none; margin: 0 15px 0 0; display: inline-block; }
.social-access a:hover.facebook { color: #fff; background-color: #2e4678; text-decoration: none !important; }
.social-access a.google { background-color: #fff; color: var(--text); border: 1px solid #ccc; }
.social-access a.google img { width: 22px; float: none; margin: 0 15px 0 0; display: inline-block; }
.social-access a:hover.google { color: var(--text); background-color: #f9f9f9; text-decoration: none !important; }
.social-access .btn-spinner { display: none; }
.social-access .loading .btn-spinner,
.social-access a.loading .btn-spinner {
  display: inline-block;
  margin: 0 11px -5px 0;
  width: 21px;
  height: 21px;
}
.social-access a.google .btn-spinner { border-top-color: #555; border-left-color: #555; }

/* ---------- "or log in using your email" divider ---------- */
.heading-line {
  position: relative;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--line-color);
  height: 20px;
  margin: 0 0 15px;
  display: inline-block;
}
.heading-line h5 {
  font-size: 14px;
  color: var(--muted);
  padding: 0 12px;
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  text-align: center;
  margin: 11px 0 0 !important;
}
.heading-line h5 span { background-color: var(--tablet-bg); padding: 0 5px; }

/* ---------- Form groups & inputs ---------- */
.form-group {
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
  float: left;
}
.form-group label {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
  color: var(--label);
  margin-top: 5px !important;
  cursor: default;
}
.form-group .tw-flex label { display: block; }
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #dadada;
  border-radius: 4px;
  box-shadow: none;
  margin-bottom: 0;
  -webkit-transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-signup-main .form-control {
  height: 44px;
  border: 1px solid #dadada;
  font-size: 16px;
  color: var(--text);
  position: relative;
}
.form-control::placeholder,
.form-signup-main .form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:focus,
.form-signup-main .form-control:focus {
  border: 1px var(--brand-color-primary) solid;
  box-shadow: none;
  outline: 0;
}
.form-control::-ms-reveal, .form-control::-ms-clear { display: none; }

.input-with-validation { position: relative; width: 100%; }
.input-with-validation .status-icon {
  position: absolute;
  max-width: 100%;
  top: 25px;
  right: 10px;
  font-weight: 600;
  font-size: 12px;
}
.input-with-validation .lnr-check,
.input-with-validation .lnr-cross2 { margin-top: -12px; }
.input-with-validation .valid { color: var(--tw-primary-700); }
.input-with-validation .valid input { border-color: var(--tw-primary-700); }
.input-with-validation .invalid { color: var(--error); }
.input-with-validation .invalid input { border-color: var(--error); }
.input-with-validation input:focus { border-color: var(--brand-color-primary); }
.status-icon.invalid { cursor: pointer; }
.warning-msg { font-size: 14px; border: 0; color: var(--error); padding: 5px 0 0 0; margin: 0; }
.warning-msg a { text-decoration: underline; color: var(--error); }

[class^="lnr-"], [class*=" lnr-"] {
  font-family: icomoon !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lnr-check::before { content: "\ec34"; }
.lnr-cross2::before { content: "\ec35"; }

.form-group a img.showpass {
  width: 23px;
  position: absolute;
  top: 15px;
  right: 10px;
  cursor: pointer;
}
.link { color: var(--brand-color-primary); }
.link.tw-text-sm { display: block; }
.link:hover { color: gray; text-decoration: none; }

/* ---------- Checkbox (bootstrap awesome-checkbox) ---------- */
.checkbox {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  float: left;
}
.checkbox label {
  min-height: 0;
  padding-left: 5px;
  margin-bottom: 0;
  font-weight: normal;
  font-size: 14px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  color: var(--tw-neutral-1000);
}
.checkbox label::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 17px;
  height: 17px;
  left: 0;
  margin-left: -20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  -webkit-transition: border .15s ease-in-out, color .15s ease-in-out;
  transition: border .15s ease-in-out, color .15s ease-in-out;
}
.checkbox label::after {
  display: inline-block;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 0;
  margin-left: -20px;
  padding-left: 3px;
  padding-top: 3px;
  font-size: 11px;
  color: #555;
}
.checkbox input[type="checkbox"] {
  position: absolute;
  margin-left: -20px;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}
.checkbox input[type="checkbox"]:focus-visible + label::before {
  outline: 2px solid var(--brand-color-primary);
  outline-offset: 2px;
}
.checkbox input[type="checkbox"]:checked + label::after {
  /* FontAwesome fa-check (\f00c) rendered as an SVG so the icon font isn't needed */
  content: "";
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1792 1792' width='11' height='11'><path fill='%23ffffff' d='M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z'/></svg>") no-repeat 3px 3px;
}
.checkbox-primary input[type="checkbox"]:checked + label::before {
  background-color: var(--brand-color-primary) !important;
  border-color: var(--brand-color-primary) !important;
}
.checkbox-primary input[type="checkbox"]:checked + label::after { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 0;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  user-select: none;
  text-decoration: none !important;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand-color-primary); outline-offset: 2px; }
.btn:active { outline: 0; background-image: none; box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); }
.btn strong { color: inherit; }
.btn-primary { background-color: var(--brand-color-primary); color: #fff; }
.btn-primary:hover { background-color: #0d469a; color: #fff; }
.btn-primary:active { background-color: var(--brand-color-primary-pressed); }
.btn-submit-inactive { background-color: #d5d5d5; color: #fff; }
.btn-submit-inactive:hover { background-color: #bebebe; color: #fff; }
button.login-btn {
  font-size: 16px;
  width: 100%;
  height: 52px;
  margin: 16px 0 0;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  display: block;
}
button.login-btn strong { font-size: 16px; line-height: 24px; }
.btn[disabled], .btn.disabled { cursor: not-allowed; opacity: .65; box-shadow: none; }
button.login-btn[disabled] { pointer-events: none; }

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border: 3px solid rgba(0, 0, 0, 0);
  border-top-color: #fff;
  border-left-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------- Sign up / collaborator lines ---------- */
.row.form-login-go-signup {
  font-size: 14px;
  width: 100%;
  display: inline-block;
  margin: 15px 0 0;
  text-align: center;
}
.form-login-go-signup a { color: var(--brand-color-primary); }
.form-login-go-signup a:hover { text-decoration: underline !important; }
.form-login-go-signup p { margin: 0 !important; }
.form-login-go-signup p span { color: #555; font-size: 14px; }

/* ---------- Footer ---------- */
p.copyright {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 10px 15px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: none;
}
p.copyright a { color: var(--brand-color-primary); }
p.copyright a:hover { text-decoration: underline !important; color: var(--brand-color-primary) !important; }

/* ---------- Boot overlay (same as the original app shell) ---------- */
#loading-overlay {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: #ccc;
  opacity: 0.8;
  z-index: 1005;
  transition: opacity .25s ease;
}
#loading-overlay.ng-hide { display: none !important; }
#loading-overlay.is-entering { opacity: 0; }
.login-page.is-leaving { opacity: 0; transition: opacity .25s ease; }
.lds-ring {
  display: inline-block;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes lds-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
