/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Variables */

:root {
  --font-family: -apple-system, "system-ui", "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --deep-blue: #00518b;
  --deep-blue-hover: rgb(0, 132, 231);
  --light-gray: #f4f4f4;
}

/* Base */

body {
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-weight: 400;
}

main {
  padding: 2rem;
}

/* Links */

a {
  font-weight: bold;
  color: var(--deep-blue);
  text-decoration: none;
}

a:hover {
  color: var(--deep-blue-hover);
}

/* Layout */

.centered-container {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

/* Buttons */

button, input[type="submit"] {
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: bold;
  text-transform: uppercase;
  background-color: var(--deep-blue);
  color: white;
  border: 0;
  border-radius: 1em;
  padding: .5em 1em;
}

input[type="submit"]:hover {
  background-color: var(--deep-blue-hover);
}

/* Logo */

.logo {
  width: 200px;
  margin: 2rem auto;
}

/* Navbar */

.navbar {
  display: flex;
  padding: 10px;
  margin-bottom: 2rem;
}

.navbar .navheader {
  flex: 1;
}

.navbar .logo {
  font-size: 1.2rem;
  color: #d65e33;
  font-weight: bold;
}

/* Login page */

.login-box {
  text-align: center;
  padding: 1rem;
}

.login-box input[type="email"], .login-box input[type="password"] {
  width: 80%;
  max-width: 400px;
  padding: .5em;
  margin-bottom: .5rem;
}

.message {
  display: flex;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid lightgray;
}

.message-content {
  flex: 1;
}

.message-time {
  font-size: 80%;
  color: gray;
}