/* Variables (pretty much just colours being standarized) */
:root {
  --bg-main: lightcyan;
  --bg-panel: #f8f9fc;

  --text-main: #222222;
  --heading-color: #1a237e;
  
  --cancel-color: #4f4e4e;
}

h1 {
  font-size: 32px;
  color:var(--heading-color);
  margin-top: 0;
}

h2 {
  font-size: 24px;
  color:var(--heading-color);
  margin-top: 0;
}

p{
  font-family: Arial;
}

label {
  padding: 6px;
}

main {
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s  
}

.center {
  margin: auto;
  width: 50%;
  text-align: center;
  padding: 1em;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

.center p {
  font-size: clamp(16px, calc(20px + (36 - 20) * (100vw - 768px)/(1920 - 768)), 28px);
  text-overflow: ellipsis;
  padding: 1em;
}

.center a {
  align-items: center;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  background-color: white;
  color: #2557a7;
  color: default;
  display: inline-flex;
  font-weight: 700;
  inline-size: auto;
  justify-content: center;
  line-height: 1.5;
  margin-block-end:1rem;margin-block-start:1rem;margin-inline-end:1rem;margin-inline-start:1rem;min-block-size: 2.75rem;
  padding-block-end:.5625rem;padding-block-start:.5625rem;padding-inline-end:1rem;padding-inline-start:1rem;position: relative;
  padding: 12px;
  -webkit-text-decoration: none;
  text-decoration: none;
  transition: border-color .2s cubic-bezier(.645,.045,.355,1),background-color .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1),box-shadow .2s cubic-bezier(.645,.045,.355,1),color .2s cubic-bezier(.645,.045,.355,1),z-index .2s cubic-bezier(.645,.045,.355,1);
  -webkit-user-select: none;
  user-select: none;
}

.center a:hover, a:active {
  background-color: gray;
}

.initialize {
	/*use . when descendant class */
	&.container {
	  display: grid;
	  justify-content: center;
	  padding: 16px;
	}
	& > input[type=text], [type=password] {
	  width: 100%;
	  padding: 12px;
	  margin: 8px;
	  display: block;
	  border: 1px solid;
	  box-sizing: border-box;
	}
	& > button {
	  background-color: var(--heading-color);
	  color: white;
	  padding: 12px;
	  margin: 8px;
	  border: none;
	  cursor: pointer;
	  width: 100%;
	  &:hover, &:focus {
		opacity: 0.8;
	  }
	  &.cancelbtn {
	    background-color: var(--cancel-color);
	  }
	}
}

body {
  background-color: var(--bg-main);
}

table,
td,
tr,
th{
	border: 4px solid blue;
	padding: 4px;
	border-collapse: collapse;
    text-align: left;
	margin-left:0em;
	font-family: Arial;
}

/* Exclusive to the reset stuff really */
.resetPassword {
  width: max-content;
  padding: 1rem;
}

.container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
}

.reset-form, .password-reset-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #555;
}

.form-group input {
  width: -webkit-fill-available;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-primary {
  background: #007bff;
  color: white;
  width: -webkit-fill-available;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
}

.btn-secondary:hover {
  background: #545b62;
}

/* Password strength indicator */
.password-strength {
  margin-top: 0.5rem;
  padding: 6px;
  width: 100%;
}

.strength-meter {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  background: #dc3545;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: #666;
}

.password-requirements {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 0.875rem;
}

.password-requirements ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

.password-requirements li {
  margin-bottom: 0.25rem;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
  color: white;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .tagline {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  margin-bottom: 2rem;
}

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

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--heading-color);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: #666;
  margin-bottom: 1.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stats-bar {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stats-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}