:root {
  --brand-primary: #2bb24b;
  --brand-secondary: #ef5822;
  --brand-gradient: linear-gradient(135deg, #2bb24b 0%, #ef5822 100%);
  --bg-color: #f4f6f9;
  --text-color: #333333;
  --text-muted: #666666;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-focus: #2bb24b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100%;
  width: 100%;
}

/* Brand Section */
.brand-section {
  flex: 1;
  background-color: #474A59;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/pattern-bg.png');
  /* Optional pattern if available, or keep generic */
  opacity: 0.1;
}

.brand-content {
  text-align: center;
  z-index: 10;
  max-width: 400px;
}

.brand-logo {
  max-width: 350px;
  margin-bottom: 2rem;
  /* Filter removed to display original logo colors */
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Login Section */
.login-section {
  flex: 1;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-muted);
}

/* Form Styles */
.form-login {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
}

.input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: var(--input-bg);
}

.input-group input:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(43, 178, 75, 0.1);
}

.btn-login {
  width: 100%;
  padding: 0.75rem;
  background-color: #474A59;
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s, background-color 0.2s;
  margin-top: 1rem;
}

.btn-login:hover {
  background-color: #3b3d4a;
}

.btn-login:active {
  transform: scale(0.98);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--input-border);
}

.divider span {
  padding: 0 1rem;
}

/* Microsoft Button */
.btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background-color: #2f2f2f;
  color: var(--white);
  border: 1px solid #2f2f2f;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.btn-microsoft:hover {
  background-color: #000;
  color: var(--white);
}

.btn-microsoft img {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #999;
}

/* Responsive */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    overflow-y: auto;
  }

  .brand-section {
    flex: 0 0 200px;
    /* Fixed height for brand section top */
    padding: 1.5rem;
  }

  .brand-logo {
    max-width: 200px;
    margin-bottom: 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .brand-subtitle {
    display: none;
  }

  .login-section {
    flex: 1;
    align-items: flex-start;
    /* Expand to top */
    padding-top: 2rem;
  }

  body {
    overflow-y: auto;
  }
}