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

body.auth-login-page {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-login-page .login-container {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.auth-login-page .logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-login-page .logo img {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-login-page .form-group {
  margin-bottom: 20px;
}

.auth-login-page label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.auth-login-page input {
    width: 100%;
    min-height: 44px;
    padding: var(--control-padding, 8px 16px);
    border: 1px solid #ddd;
    border-radius: var(--control-radius, 8px);
    font-size: 14px;
}

.auth-login-page input:focus {
  outline: none;
  border-color: #667eea;
}

.auth-login-page button {
    width: 100%;
    padding: var(--button-padding, 8px 24px);
    background: #667eea;
    color: white;
    border: none;
    border-radius: var(--control-radius, 8px);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.auth-login-page button:hover:not(.forgot-link):not(.email-toggle-btn) {
  background: #5568d3;
}

.auth-login-page button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.auth-login-page .error {
  color: #e74c3c;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.auth-login-page .success {
  color: #38a169;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.auth-login-page .login-query-error {
  margin-bottom: 15px;
}

.auth-login-page .divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #999;
  font-size: 13px;
}

.auth-login-page .divider::before,
.auth-login-page .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.auth-login-page .divider span {
  padding: 0 12px;
}

.auth-login-page .ms-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: var(--button-padding, 8px 24px);
    background: #fff;
    color: #5e5e5e;
    border: 1px solid #8c8c8c;
    border-radius: var(--control-radius, 8px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
    background 0.2s,
    border-color 0.2s;
    text-decoration: none;
}

.auth-login-page .ms-btn:hover {
  background: #f3f3f3;
  border-color: #5e5e5e;
}

.auth-login-page .ms-btn svg {
  flex-shrink: 0;
}

.auth-login-page .google-btn {
  margin-top: 12px;
}

.auth-login-page .forgot-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #667eea;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-weight: normal;
  text-decoration: underline;
}

.auth-login-page .email-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: var(--button-padding, 8px 24px);
    background: #fff;
    color: #667eea;
    border: 1.5px solid #667eea;
    border-radius: var(--control-radius, 8px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
    background 0.2s,
    color 0.2s;
    text-decoration: none;
}

.auth-login-page .email-toggle-btn:hover {
  background: #f0f2ff;
}

.auth-login-page .email-toggle-btn svg {
  flex-shrink: 0;
}

.auth-login-page .email-toggle-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.auth-login-page .email-toggle-btn.open .email-toggle-chevron {
  transform: rotate(180deg);
}

.auth-login-page .auth-login-panel {
  display: none;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.auth-login-page .auth-login-panel.is-open {
  display: block;
}

.auth-login-page .remember-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.auth-login-page .remember-checkbox {
  width: auto;
  margin-right: 8px;
}

.auth-login-page .forgot-copy {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
}
