/* Login Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/* Login Wrapper */
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left Branding Panel */
.login-branding {
  width: 45%;
  background: linear-gradient(135deg, #5e1e28 0%, #822b39 50%, #991b35 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 50px;
  overflow: hidden;
}

.branding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://agenda2063.africa/assets/banner1.jpeg') center/cover no-repeat;
  opacity: 0.08;
}

.branding-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.brand-logo {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(245, 193, 67, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  backdrop-filter: blur(10px);
}

.brand-logo i {
  font-size: 40px;
  color: #f5c143;
}

.branding-content h1 {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0;
  line-height: 1.2;
}

.brand-divider {
  width: 50px;
  height: 3px;
  background: #f5c143;
  margin: 18px auto;
  border-radius: 2px;
}

.branding-content > p {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 1px;
  margin-bottom: 50px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.brand-feature i {
  font-size: 18px;
  color: #f5c143;
  width: 20px;
  text-align: center;
}

.brand-feature span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.branding-footer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
}

.branding-footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Right Form Panel */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #822b39 0%, #991b35 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(130, 43, 57, 0.25);
}

.login-icon i {
  font-size: 24px;
  color: white;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.login-header p {
  font-size: 14px;
  color: #999;
}

/* Alert */
.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 13px;
  font-weight: 500;
}

.login-alert.error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.login-alert i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper > i {
  position: absolute;
  left: 16px;
  font-size: 15px;
  color: #bbb;
  transition: color 0.3s ease;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #822b39;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(130, 43, 57, 0.08);
}

.input-wrapper input:focus ~ i,
.input-wrapper:focus-within > i {
  color: #822b39;
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 16px;
  padding: 4px;
  transition: color 0.3s ease;
  z-index: 1;
}

.toggle-password:hover {
  color: #822b39;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #e74c3c;
  margin-top: 6px;
  font-weight: 500;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #822b39;
  cursor: pointer;
}

.forgot-link {
  font-size: 13px;
  color: #822b39;
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: #991b35;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #822b39 0%, #991b35 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(130, 43, 57, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
}

.login-footer a {
  font-size: 13px;
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
  font-weight: 500;
}

.login-footer a:hover {
  color: #822b39;
}

/* Responsive */
@media (max-width: 968px) {
  .login-branding {
    display: none;
  }

  .login-form-panel {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .login-form-container {
    max-width: 100%;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
