* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #6a89cc 0%, #b8e994 100%);
}

h1 {
    font-size: 22px;
    margin-bottom: 16px;
}

.form-container {
    width: 100%;
    height: 100%;
    /*background: #f5f5f5;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.login-box, .registration-box, .reset-password-box, .message-box {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(106, 137, 204, 0.15);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    width: 100%;
    max-width: 420px;
}

.message-box h3 {
    margin-bottom: 20px;
}
.message-box div {
    line-height: 35px;
}


.toast {
    position: fixed;
    top: 5px;
    left: 5px;
    background-color: #333;
    color: #fff;
    padding: 3px 5px !important;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 9999;
}
/*if toast is empty no padding applied */
.toast:empty {
  padding: 0;
  background: none;
}

.message {
    font-size: 12px;
    padding: 4px 0;
}

.info {
    color: black;
}

.error {
    color: red;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button, .button  {
    width: 100%;
    display: inline-block;
    margin-top: 18px;
    padding: 12px 32px;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(26,115,232,0.10);
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    letter-spacing: 0.2px;
    text-align: center;
}

button:hover, .button:hover {
    background: #1765c1;
    box-shadow: 0 4px 16px rgba(26,115,232,0.18);
}

/* Primary button */
.button-primary {
    background-color: #007bff; /* Blue */
    color: #ffffff;
}

.button-primary:hover {
    background-color: #0056b3; /* Darker blue */
}

.button-primary:active {
    background-color: #004085; /* Even darker when pressed */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Secondary button */
.button-secondary {
    background-color: #f8f9fa; /* Light gray */
    color: #212529; /* Dark text */
    border: 1px solid #ced4da;
}

.button-secondary:hover {
    background-color: #e2e6ea; /* Slightly darker gray */
}

.button-secondary:active {
    background-color: #dae0e5; /* Darker gray pressed state */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Optional: Disabled state */
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.extra-links {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between; /* aligns children to edges */
    gap: 0;
    width: 100%;
}

.extra-links a {
    color: #007bff;
    text-decoration: none;
}

.extra-links a:hover {
    color: #b8e994;
}

.menu-nav {
    height: 30px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.menu-nav a {
    color: white;
    text-decoration: none;
    font-size: 10px;
    text-align: center;
}

.menu-nav .camera-btn {
    display: flex;
    justify-content: center;
    margin-bottom: -5px !important;
    align-items: center;
    width: 50%;
    height: 40px;
    background: #6a89cc;
    border: solid 2px white;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(106,137,204,0.18);
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 auto 15px auto;
    padding-bottom: 15px;
}
.menu-nav .camera-btn:hover {
    background: #3867d6;
}
.menu-nav .camera-icon {
    font-size: 20px;
    color: #fff;
}

.menu-nav a:hover {
    color: #1e90ff;
}

.nav-item {
    flex: 1;
    text-align: center;
}

/* Container for the switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

/* Slider circle */
.slider::before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* Toggle on */
input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider::before {
  transform: translateX(26px);
}