/* The login page for rimoni.skitali.ai. Colours, type, background, button and
   alert follow app/src/styles.css, so it reads as the same product. */
:root {
  --rimoni-red:      #E30613;
  --rimoni-red-dark: #B8040E;
  --ind-black:       #17191D;
  --ind-gray:        #5F646C;
  --light-gray:      #E7E9EC;
  --soft-gray:       #F4F5F6;
  --white:           #FFFFFF;
}

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

body {
  font-family: "Heebo", "Assistant", Arial, "Arial Hebrew", sans-serif;
  direction: rtl;
  background-image:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)),
    url('background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #F0F2F5;
  color: var(--ind-black);
  font-size: 15px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  padding: 32px 30px 26px;
  box-shadow: 0 8px 24px rgba(23,25,29,0.07);
}

.company-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.page-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--ind-black);
  letter-spacing: -0.3px;
}

.page-subtitle {
  font-size: 12px;
  color: var(--ind-gray);
  margin-top: 2px;
  margin-bottom: 26px;
}

form { width: 100%; display: flex; flex-direction: column; }

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ind-black);
  margin-bottom: 6px;
}

input {
  min-height: 44px;
  padding: 0 14px;
  margin-bottom: 16px;
  border: 1px solid #CED1D5;
  border-radius: 10px;
  background: var(--white);
  color: var(--ind-black);
  font-family: inherit;
  font-size: 15px;
  text-align: right;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus {
  outline: none;
  border-color: var(--rimoni-red);
  box-shadow: 0 0 0 3px rgba(227,6,19,0.12);
}

.login-alert {
  margin: -4px 0 16px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  background: rgba(201,52,52,0.07);
  border: 1px solid rgba(201,52,52,0.24);
  color: #8B2020;
}
.login-alert[hidden] { display: none; }

.btn-primary {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--rimoni-red), var(--rimoni-red-dark));
  color: white;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(227,6,19,0.22), inset 0 1px rgba(255,255,255,0.18);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(227,6,19,0.28), inset 0 1px rgba(255,255,255,0.18);
}

.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(227,6,19,0.18); }

.btn-primary:disabled {
  background: #B8BCC2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: none;
  flex-shrink: 0;
}
.btn-primary:disabled .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.internal-badge {
  margin-top: 22px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 13px;
  border-radius: 20px;
  background: var(--soft-gray);
  border: 1px solid var(--light-gray);
  color: var(--ind-gray);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, input { transition: none; }
  .btn-primary:hover { transform: none; }
}
