﻿.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}

/* ===========================
   ROPA
   =========================== */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter";
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.font .normal {
  font-weight: 400;
}
.font .medium {
  font-weight: 500;
}
.font .semibold {
  font-weight: 600;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.alert {
  margin-bottom: 0;
  padding: 0.75rem 0rem;
  text-align: center;
}
.alert ul {
  margin-bottom: 0;
  list-style: none;
}

.alert-danger {
  color: #e00000;
  background-color: transparent;
  border-color: transparent;
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 0;
}

.ropa-logo {
  position: absolute;
  top: 84px;
  right: 0px;
}
.ropa-logo > img {
  height: 65px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 70px;
  width: 100%;
  max-width: 510px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.logo-container .myropa-logo {
  width: 50px;
  height: 50px;
  margin-right: 16px;
}
.logo-container .rconnect-logo {
  height: 35px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  color: #1a1a1a;
}
.title.mb-30 {
  margin-bottom: 30px;
}

.subtitle {
  font-size: 13px;
  text-align: center;
  color: #666666;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}
.form-group label.form-check-label {
  margin-bottom: 0;
}
.form-group .field-validation-error {
  color: #e00000;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-group.mb-065 {
  margin-bottom: 0.65rem;
}

.forgot-password,
.back {
  font-size: 12px;
  color: #1a1a1a;
  text-decoration: underline;
}
.forgot-password:hover,
.back:hover {
  color: #FFD100;
}

.back {
  margin-top: 20px;
}

ul.password-hints {
  margin-left: 13px;
  font-size: 13px;
  color: #666666;
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 14px;
  color: #1a1a1a;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  height: 42px;
}
.form-control:focus {
  outline: none;
  border-color: #FFD100;
  box-shadow: 0 0 0 2px rgba(255, 209, 0, 0.3);
}
.form-control.input-validation-error {
  border-color: #e00000;
}
.form-control.input-validation-error:focus {
  border-color: #e00000;
  box-shadow: 0 0 0 2px rgba(224, 0, 0, 0.2);
}

.form-check-input {
  accent-color: #FFD100;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #6c757d;
  padding: 0.25rem;
}
.password-toggle:hover {
  color: #333;
}

input[type=password]::-ms-reveal,
input[type=password]::-ms-clear {
  display: none;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
  width: 100%;
  padding: 12px;
  background-color: #FFD100;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 15px;
}
.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled).active:hover,
.btn-primary:not(:disabled):not(.disabled):active:hover {
  background-color: #e6bc00;
  text-decoration: none;
}
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  color: #fff;
  background-color: #FFD100;
  border-color: #e6bc00;
  box-shadow: 0 0 0 0.2rem rgba(255, 209, 0, 0.35);
}

.error-text {
  font-size: 12px;
  color: #e00000;
  display: none;
}
.error-text.visible {
  display: block;
}

.alert-warning {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  color: #856404;
  margin-top: 16px;
}

/* ===========================
   Access Denied Card
   =========================== */
.access-denied-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 70px;
  width: 100%;
  max-width: 510px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-container {
  margin: 24px 0 16px 0;
  display: flex;
  justify-content: center;
}

.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #fff0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle svg {
  width: 36px;
  height: 36px;
  color: #e00000;
  stroke: #e00000;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.btn-back {
  width: 100%;
  padding: 12px;
  background-color: #FFD100;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-back:hover {
  background-color: #e6bc00;
  color: #1a1a1a;
  text-decoration: none;
}

.btn-support {
  width: 100%;
  padding: 12px;
  background-color: #f5f5f5;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #cccccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-support:hover {
  background-color: #e9e9e9;
  color: #1a1a1a;
}

.error-code {
  font-size: 11px;
  color: #aaaaaa;
  margin-top: 24px;
  text-align: center;
}

.contact-section {
  width: 100%;
  margin-top: 28px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.contact-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #1a1a1a;
  background-color: #ffffff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-item:hover {
  background-color: #f9f9f9;
  border-color: #cccccc;
  color: #1a1a1a;
  text-decoration: none;
}
.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-item-left svg {
  width: 22px;
  height: 22px;
  stroke: #3a8fc7;
  flex-shrink: 0;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.contact-item-value {
  font-size: 12px;
  color: #666666;
}

.contact-item-arrow {
  width: 16px;
  height: 16px;
  stroke: #aaaaaa;
  flex-shrink: 0;
}

.contact-hours {
  font-size: 12px;
  color: #aaaaaa;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 992px) {
  .card,
  .access-denied-card {
    max-width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  .wrapper {
    background-color: #f5f5f5;
  }
  .ropa-logo {
    top: 35px;
  }
  .ropa-logo > img {
    height: 50px;
  }
}
@media (max-width: 768px) and (orientation: portrait) {
  .card,
  .access-denied-card {
    max-width: 90%;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 35px;
  }
  .wrapper {
    background-color: #fff;
  }
  .ropa-logo {
    top: 35px;
  }
  .ropa-logo > img {
    height: 40px;
  }
}
@media (max-width: 480px) {
  .wrapper {
    align-items: start;
    margin-top: 120px;
    min-height: auto;
    max-height: 100vh;
  }
  .card,
  .access-denied-card {
    max-width: 100%;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 35px;
    border: 0;
    margin-bottom: 0;
    top: 0;
    position: relative;
  }
  .access-denied-card {
    top: 105px;
  }
  .logo-container {
    justify-content: center;
  }
}
