﻿@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&family=Roboto:wght@500;700&display=swap");
body {
  font-family: "Lato", sans-serif;
  color: #212529;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
}

.card .card-header h2 {
  margin: 0;
}

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

.icon-banner {
  max-height: 40px;
}

.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;
}

.startlogos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
}
.startlogos .logo {
  width: 150px;
}

.nav-item.header {
  color: #FFF;
}

a {
  color: #000;
  text-decoration: underline;
}

.top-row {
  background-color: #550931 !important;
  color: #FFF;
}
.top-row strong {
  font-weight: normal;
}
.top-row a {
  color: #FFF;
  text-decoration: underline;
}

body {
  /*margin: 0;*/
  background-color: #f5f5f5;
  /*display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;*/
}

.login-page {
  padding: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-header {
  text-align: center;
}
.login-header .logo {
  height: 40px;
  margin-bottom: 1rem;
}
.login-header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #7c0d32;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.input-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
}
.input-group input {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.input-group input:focus {
  outline: none;
  border-color: #7c0d32;
}

.options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.9rem;
}
.options input[type=checkbox] {
  margin-right: 0.5rem;
}

.btn {
  display: block;
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn.primary {
  background-color: #7c0d32;
  color: white;
}
.btn.secondary {
  background-color: #eee;
  color: #555;
}
.btn.secondary:hover {
  background-color: #ddd;
}

.forgot-password {
  margin-top: 1rem;
  text-align: center;
}
.forgot-password a {
  color: #7c0d32;
  font-size: 0.9rem;
  text-decoration: none;
}
.forgot-password a:hover {
  text-decoration: underline;
}

.validation-summary-errors {
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.validation-summary-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.form-floating {
  position: relative;
  margin-bottom: 1.25rem;
}
.form-floating input {
  width: 100%;
  padding: 1.2rem 0.75rem 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}
.form-floating input:focus {
  outline: none;
  border-color: #7c0d32;
}
.form-floating input:focus + label, .form-floating input:not(:placeholder-shown) + label {
  top: 0.4rem;
  font-size: 0.75rem;
  color: #7c0d32;
}
.form-floating label {
  position: absolute;
  top: 1rem;
  left: 0.75rem;
  color: #555;
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0 0.25rem;
}

.flowLogos {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.alert.error {
  background-color: #f8d7da;
  color: #842029;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.logout-container {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem 2rem;
  box-shadow: 0 6px 32px 0 rgba(80, 80, 80, 0.09);
  text-align: center;
  min-width: 320px;
}

.logout-icon {
  margin-bottom: 1.2rem;
  color: #5dc983;
}

.logout-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #23272f;
}

.logout-button {
  background: #550931;
  color: #fff !important;
  padding: 0.75rem 1.3rem;
  border-radius: 2rem;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 16px 0 rgba(52, 104, 227, 0.07);
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.logout-button:hover {
  background: #450931;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem 1rem;
  }
  .btn {
    font-size: 0.95rem;
  }
}
.startpage-link {
  padding: 20px;
  border-bottom: 1px solid #CCC;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.startpage-link a i {
  font-size: 40px;
}

.startpage-link:first-of-type {
  border-top: 1px solid #CCC;
}

.app-selector {
  gap: 2rem !important;
  justify-content: center;
}

.app-card {
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.app-card:hover {
  box-shadow: 0 8px 32px rgba(90, 72, 225, 0.15);
  transform: translateY(-3px) scale(1.04);
  background: #faf8fe;
}

.icon-container {
  background: #550931;
  font-size: 2rem;
  padding: 15px;
  border-radius: 25%;
  color: white;
}
.icon-container i {
  color: white;
}

.app-company {
  opacity: 0.7;
}

.app-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .app-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
