.v-center {
  display: flex;
  align-items: center; }

.center-align-c {
  float: none;
  display: flex;
  justify-content: center; }

.img-responsive {
  width: 100%;
  height: auto; }

/* --- Font Sizes --- */
.font20 {
  font-size: 20px; }

.font30 {
  font-size: 30px; }

.font35 {
  font-size: 35px; }

/* ------ */
/* --- Main CSS --- */
/* Prevent horizontal scrollbars on auth layout, but allow vertical scrolling
   so both columns (hero + form) are reachable on tablets like iPad. */
.tp-body {
  overflow-x: hidden;
  overflow-y: auto; }

/* Plain panel for auth forms (no grey background, no shadow) */
.auth-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px; }

.tp-body .row > .col {
  min-height: 100vh; }

.tp-body .tp-preface,
.tp-body .tp-signup,
.tp-body .tp-signin {
  padding: 30px;
  /* prevent 100vh + padding from causing page scroll */
  min-height: 100vh;
  box-sizing: border-box; }

/* Left hero stays vertically centered */
.tp-body .tp-preface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; }

/* Right auth panels vertically centered, still scroll if content is tall */
.tp-body .tp-signup,
.tp-body .tp-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; }

/* Keep left hero fixed and allow only the right auth panel to scroll */
.tp-body .tp-signup,
.tp-body .tp-signin {
  height: 100vh;
  overflow-y: auto; }

.tp-body .tp-preface {
  color: white;
  background: #051D2E;
  text-align: center;
  padding: 30px; }

/* Ensure right column has no grey background */
.tp-body .tp-signin,
.tp-body .tp-signup {
  background: transparent !important; }

/* Override any inline background that might come from an old JS bundle */
.tp-signin div[style*="background"],
.tp-signup div[style*="background"] {
  background: transparent !important;
  box-shadow: none !important; }

.tp-preface .tp-header-container .tp-heading {
  font-size: 37px; }

.tp-preface .tp-header-container .tp-sub-heading {
  font-size: 20px;
  opacity: 0.75; }

.tp-preface .tp-why-us-container,
.tp-preface .tp-testimony-container {
  background: #122B3C;
  border-radius: 10px; }

.tp-preface .tp-testimony-container {
  /* add breathing room at bottom */
  margin-bottom: 24px; }

/* Remove extra top margin on the very first logo row */
.tp-preface .tp-header-container p.mt-3 {
  margin-top: 0 !important; }

.tp-preface .tp-testimony-container .tp-testimony {
  background: #183245;
  border-radius: 10px; }

.tp-preface .tp-why-us-container .why-us-text {
  font-size: 30px;
  color: #73949F;
  display: block;
  margin-bottom: 1rem; }

.tp-preface .tp-why-us-container p::after {
  font-family: 'Material Design Icons';
  content: "\F0133";
  margin-left: 10px;
  color: #00C9A5; }

.tp-preface .tp-testimony-container .row > [class*="col-"] {
  padding: 1.5rem; }

.tp-preface .tp-sponsors {
  display: flex;
  align-items: center;
  gap: 5%;
  justify-content: space-between; }

.tp-preface .tp-sponsors span img {
  width: 100%;
  height: auto; }

/* ------ */
/* --- Form CSS --- */
.tp-form .form-group {
  margin-bottom: 2rem; }

.tp-form label {
  color: #696F79;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 1rem; }

.tp-form .form-check {
  display: flex;
  align-items: center;
  gap: 10px; }

.tp-form .form-check .form-check-label {
  margin-bottom: 0; }

.tp-form input.form-control,
.tp-form select.form-control {
  border: 1px solid #8692A6;
  padding: 1.5rem; }

.tp-form .tp-select {
  position: relative; }

.tp-form .tp-select::after {
  font-family: 'Material Design Icons';
  content: "\F0B26";
  color: #C5DFE7;
  float: right;
  font-size: 25px;
  position: absolute;
  right: 3%;
  top: calc(50% - 1rem); }

.tp-form input::placeholder {
  color: #8692A6; }

.tp-form .submit-btn {
  color: white;
  background: #051D2E;
  width: 100%;
  padding: 1.5rem;
  font-size: 20px;
  font-weight: 500; }

/** App css below **/
#tp-app {
  height: 100vh; }

/* Role selection (landing) */
.role-select-form .role-option {
  cursor: pointer; }

.role-select-form input[type="radio"] {
  display: none; }

.role-select-form .role-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 20px;
  background: #ffffff; }

.role-select-form input[type="radio"]:checked + .role-card {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25); }

.role-select-form .role-label {
  font-weight: 600; }

.role-select-form .role-description {
  font-size: 0.9rem;
  color: #6c757d; }

/* ------- */
/* Smaller, inline auth error styling inside auth panel */
.auth-errors .tp-flash {
  font-size: 12px;
  padding: 6px 8px;
  margin-bottom: 8px; }

/** Media Queries **/
@media (max-width: 576px) {
  .tp-preface .tp-testimony-container .tp-testimony {
    background: unset; } }

@media (max-width: 768px) {
  .tp-body .container-fluid > .row {
    flex-direction: column-reverse; } }

/** ---------- */
/* --- Dashboard (TP-like) --- */
.tp-dashboard {
  height: 100vh;
  overflow: hidden;
  /* Keep the shell fixed to the viewport; scroll only inside content */ }

/* Use dynamic viewport height where supported (iPad / mobile Safari fix) */
@supports (height: 100dvh) {
  .tp-dashboard {
    height: 100dvh; } }

.tp-dashboard .tp-sider {
  background: #0E2A3F !important; }

.tp-dashboard .tp-sider .ant-menu-item-selected {
  background: #122B3C !important; }

.tp-dashboard .tp-sider .ant-menu-item:hover {
  background: rgba(255, 255, 255, 0.06) !important; }

.tp-dashboard .tp-sider .ant-menu:last-child {
  /* Bottom logout section spacing */
  margin-top: 0; }

.tp-dashboard .tp-sider .ant-menu,
.tp-dashboard .tp-sider .ant-menu * {
  color: #d6e2e7 !important; }

.tp-dashboard .tp-sider .ant-menu-item-selected,
.tp-dashboard .tp-sider .ant-menu-item-selected * {
  color: #ffffff !important; }

.tp-dashboard .ant-layout-content {
  /* airy content area like TP */
  padding: 24px;
  background: #f7f9fb;
  min-height: 0;
  overflow-y: auto;
  /* Allow the main content area to scroll while sidebar stays fixed */ }

@media (max-width: 768px) {
  .tp-dashboard .ant-layout-content {
    padding: 16px 12px; } }

.tp-dashboard-header {
  background: #ffffff;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0; }

.tp-dashboard-header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between; }

/* Table-like rows for dashboard lists (projects, etc.) */
.tp-dashboard .tp-dashboard-table-row {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2fr) minmax(0, 1.5fr) auto;
  align-items: center;
  padding: 8px 12px;
  column-gap: 16px; }

.tp-dashboard .tp-dashboard-table-row + .tp-dashboard-table-row {
  border-top: 1px solid #f0f0f0; }

.tp-dashboard .tp-dashboard-table-row__actions {
  text-align: center; }

/* Subtle styling for Ant Design tables used in dashboard lists */
.ant-table-tbody > tr:nth-child(even) > td {
  background: #fbfdff; }

.ant-table-tbody > tr:hover > td {
  background: #f5f7fa; }

/* Smaller table headers specifically for project details tables */
.tp-project-details-table .ant-table-thead > tr > th {
  font-size: 11px;
  padding-top: 6px;
  padding-bottom: 6px; }

@media (max-width: 768px) {
  .tp-dashboard .tp-dashboard-table-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    row-gap: 4px; }
  .tp-dashboard .tp-dashboard-table-row__meta,
  .tp-dashboard .tp-dashboard-table-row__actions {
    grid-column: 1 / -1;
    margin-top: 4px; }
  .tp-dashboard .tp-dashboard-table-row__actions {
    text-align: left; } }

/* --------------------------- */
/* --- Clean Flash messages --- */
.tp-flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 16px;
  border: 1px solid transparent; }

.tp-flash .mdi {
  font-size: 18px;
  line-height: 1.2;
  margin-top: 0; }

.tp-flash--error {
  background: #fff2f0;
  /* subtle red */
  border-color: #ffccc7;
  color: #a8071a; }

.tp-flash--info {
  background: #e6f4ff;
  /* subtle blue */
  border-color: #91caff;
  color: #0958d9; }

.tp-flash--success {
  background: #f6ffed;
  /* subtle green */
  border-color: #b7eb8f;
  color: #237804; }

/* --------------------------- */
