// styles.scss

// 🎨 Variables
$font-family: sans-serif;
$primary: #1e3a8a;
$primary-hover: #1e40af;
$secondary: #2563eb;
$secondary-hover: #1e40af;
$bg-light: #f9fafb;
$bg-white: #fff;
$text-dark: #1f2937;
$text-gray: #374151;
$text-light: #4b5563;
$success: #15803d;
$alert-danger-bg: #f8d7da;
$alert-danger-border: #f5c2c7;
$alert-danger-text: #842029;
$alert-success-bg: #d1e7dd;
$alert-success-border: #badbcc;
$alert-success-text: #0f5132;

// 🌐 Base styles
body {
  font-family: $font-family;
  margin: 0;
  padding: 2rem;
  color: $text-dark;
  background: $bg-light;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.logincontainer {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: 2rem;
  color: $primary;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: $text-gray;
}

h3 {
  font-size: 1.25rem;
  color: $primary;
  margin-bottom: 1.5rem;
}

// 📦 Components
.topinfo {
  margin: 1rem 0;
  padding: 1rem;
  background: $bg-white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;

  p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .login-status {
    color: $success;
    font-weight: bold;
  }

  .provisioned {
    font-weight: bold;
    margin-bottom: 1rem;

    span, .highlight-current {
      text-decoration: underline;
      font-weight: normal;
      background-color: #dbeafe;
      padding: 0.1rem 0.4rem;
      border-radius: 0.25rem;
    }
  }
}

.info {
  margin: 1rem 0;
  padding: 1rem;
  background: $bg-white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  text-align: left;
  

  p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .login-status {
    color: $success;
    font-weight: bold;
  }

  .provisioned {
    font-weight: bold;
    margin-bottom: 1rem;

    span, .highlight-current {
      text-decoration: underline;
      font-weight: normal;
      background-color: #dbeafe;
      padding: 0.1rem 0.4rem;
      border-radius: 0.25rem;
    }
  }
}

// 📋 Form styles
label {
  display: block;
  text-align: left;
  margin-bottom: 0.25rem;
  color: $text-gray;
  font-weight: 600;
}

input, 
input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  margin-bottom: 1rem;
  font-size: 1rem;

  &.readonly-field {
    background: #f3f4f6;
    color: #6b7280;
  }
}

.checkbox {
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;

  input {
    margin-right: 0.5rem;
  }
}

// 🔘 Buttons
.btn, .btn-submit {
  background: $primary;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  @media (max-width: 420px){
	display: block;
    font-size: 14px;
  }
}



.btn:hover, .btn-submit:hover {
  background: $primary-hover;
}

.btn-submit.secondary {
  background: $secondary;

  &:hover {
    background: $secondary-hover;
  }
}

// 🚨 Alerts
.alert {
  padding: 12px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;

  &.alert-danger {
    background-color: $alert-danger-bg;
    border: 1px solid $alert-danger-border;
    color: $alert-danger-text;
  }

  &.alert-success {
    background-color: $alert-success-bg;
    border: 1px solid $alert-success-border;
    color: $alert-success-text;
  }
}
