﻿.welcome-page .logo {
  width: 64px;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

/* Center login page */
.body-container:has(.login-page) {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
}

.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;
}

.btnregister {
    margin-top: 15px;
}

.hidden-display {
    visibility: hidden;
}

.full-width {
    width: 100%;
}

.button-padding {
    padding: 8px;
}

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

/* ── Green-themed Login Page ── */

.login-page {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.login-hero {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.925rem;
    color: #64748b;
    margin: 0;
}

.login-card {
    padding: 22px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.login-input {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.925rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.login-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    background: #fff;
    outline: none;
}

.login-input-group {
    border-radius: 10px;
    overflow: hidden;
}

.login-input-group .login-input {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.login-toggle-btn {
    border: 1.5px solid #cbd5e1;
    border-left: none;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 14px;
    transition: background 0.2s, color 0.2s;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.login-toggle-btn:hover {
    background: #f1f5f9;
    color: #16a34a;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.login-remember .form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.login-remember .form-check-label {
    font-size: 0.85rem;
    color: #475569;
}

.login-forgot-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #16a34a;
    text-decoration: none;
    transition: color 0.2s;
}

.login-forgot-link:hover {
    color: #15803d;
    text-decoration: underline;
}

.login-btn-primary {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.login-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    opacity: 0.95;
    color: #fff;
}

.login-btn-primary:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

.login-external-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-external-heading {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
}

.login-btn-external {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-btn-external:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.login-signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #64748b;
}

.login-signup-link a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.login-signup-link a:hover {
    color: #15803d;
    text-decoration: underline;
}

.login-btn-secondary {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.login-btn-secondary:hover {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #16a34a;
}

.login-success-message {
    text-align: center;
    padding: 16px 0 24px;
    color: #16a34a;
}

.login-success-message svg {
    margin-bottom: 12px;
}

.login-success-message p {
    font-size: 0.925rem;
    color: #334155;
    margin: 0;
}

.login-alert {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 20px 24px;
    color: #92400e;
    text-align: center;
}

.login-alert p {
    margin: 8px 0 0;
    font-size: 0.9rem;
}