/* Центрування та відступи для основного контенту */
.register-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Flash повідомлення */
.flash {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
}

.flash.danger {
    background-color: #f8d7da;
    color: #721c24;
}
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    margin: auto;
}

/* Блок форми входу */
.login-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Поля введення */
.input-box {
    margin-bottom: 15px;
    text-align: left;
}

.input-box label {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
}

/* Кнопка входу */
.btn {
    width: 100%;
    padding: 10px;
    background-color: var(--color-login-button);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--color-login-button-hover);
}
/* "remember me": the whole line is the place to tap */
.remember {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 10px;
  cursor: pointer;
}
.remember input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
}
.remember span {
  flex: 1;
  text-align: left;
}
/* the lost password right under the button of the login, on its own line */
.forgot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: bold;
  color: #007bff;
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

/* "Continue with Google" above the form, by the rules of Google for the button: white, its logo, a grey border */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #747775;
    border-radius: 4px;
    background-color: #fff;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.google-btn:hover {
    background-color: #f2f2f2;
}

.google-logo {
    width: 20px;
    height: 20px;
    flex: none;
}

/* the line "or" between the button of Google and the form */
.or-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.or-line::before, .or-line::after {
    content: '';
    flex: 1;
    border-top: 1px solid #d7dee6;
}
