/* Remove default margins and padding */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

/* Top container for logos */
.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

/* Logo styles */
.logo-left,
.logo-right {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Login container */
.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

/* Logo inside login box */
.login-box-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* Heading */
h2 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

/* Error message styling */
.error-message {
    background-color: #ffecec;
    color: #d32f2f;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.4;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form inputs */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    width: 100%;
}

label {
    font-size: 12px;
    color: #333333;
    margin-right: 10px;
    width: 90px;
}

input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #f3723a;
    outline: none;
}

/* Login Button */
button {
    width: 100%;
    padding: 10px;
    background-color: #f3723a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #d86c2d;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #555;
}

/* OTP container */
.otp-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
}

.otp-box-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* ===== Alert (error) ===== */
.alert {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid transparent;
  background: #f9fafb;
}
.alert strong { font-weight: 600; }
.alert-error {
  background: #fff4f4;
  border-color: #f5c2c2;
  color: #b42318; /* accessible red */
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  animation: fadeIn 0.25s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shake the card slightly only when there’s an error */
.login-container.has-error {
  animation: cardShake 240ms ease-in-out;
}
@keyframes cardShake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ===== Support note inside the card ===== */
.support-note {
  margin-top: 14px;
  font-size: 12px;
  color: #666;
  line-height: 1.45;
}
.support-note a {
  color: #f3723a;
  text-decoration: none;
  font-weight: 600;
}
.support-note a:hover { text-decoration: underline; }
