/* /assets/css/auth.css */


body {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
}

h1, h2, h3 {
    margin-top: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Стиль для любого элемента в фокусе */
input:focus,
textarea:focus,
select:focus {
    outline: none;          /* Убираем стандартную обводку браузера */
    border: 2px solid #007bff; /* Синяя рамка толщиной 2px */
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); /* Лёгкое свечение */
}



button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
	transition: background-color .15s ease, opacity .15s ease;
}

/* Ховер только для активных кнопок */
button:not(:disabled):hover {
    background-color: #0056b3;
}

/* Серая неактивная кнопка */
button:disabled,
input[type="submit"]:disabled {
    background-color: #adb5bd;  /* серый */
    color: #fff;
    cursor: not-allowed;
    opacity: 0.85;              /* чуть приглушим */
    pointer-events: none;       /* на всякий случай для некоторых браузеров */
}

/* (опционально) фокус-обводка для доступности */
button:focus-visible {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    color: green;
    text-align: center;
}

.captcha-section {
    margin-bottom: 15px;
}

#captcha-image {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

#resend-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

input.is-invalid, textarea.is-invalid, select.is-invalid {
  border-color: #e53e3e !important;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(229,62,62,.15);
}
.error-text {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 4px;
}

#captcha-timer.danger  { color: #d97706; }   /* ~оранжевый, < 30с */
#captcha-timer.expired { color: #e53e3e; font-weight: 600; } /* красный, 0 */


/* Доступно для скринридеров, невидимо визуально */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
