/* Wholesale login page */

body, html {
  height: 100%;
  margin: 0;
  font-family: 'Helvetica', sans-serif;
  background: #f4f4f4;
}

.container-flex {
  display: flex;
  height: 100vh;
}

.split-left, .split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.split-left {
  background: #1e3d59;
  color: white;
  text-align: center;
}

.split-left img {
  width: 250px;
  margin-bottom: 20px;
}

.split-right {
  background: #ffffff;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: #1e3d59;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.login-box button:disabled {
  background: #888;
}

.error-msg {
  color: red;
  margin-bottom: 10px;
}

/* Wholesale login overlay with spinner logo */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay .spinner-logo {
  width: 180px;
  height: 80px;
background: url('/static/wholesale/logo_spinner.png') no-repeat center center;
  background-size: contain;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

