/* CVBC Connect - Login Page Styles */
:root {
  --teal:      #4BBFBF;
  --deep-teal: #1E7070;
  --charcoal:  #4A4A4A;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--deep-teal) 0%, #0d4545 50%, #1a3a3a 100%);
  padding: 20px;
}

body.has-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.has-bg-image::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(14, 55, 55, 0.72);
  z-index: 0;
}

.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(255,255,255,0.97);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--deep-teal) 100%);
  padding: 32px 32px 28px;
  text-align: center;
}

.login-logo {
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 12px;
}

.login-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.login-body { padding: 28px 32px 24px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: var(--charcoal);
  transition: all 0.2s;
  background: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(75,191,191,0.12);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--teal), var(--deep-teal));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(75,191,191,0.3);
}

.btn-login:hover {
  background: linear-gradient(135deg, #3daeae, #185c5c);
  box-shadow: 0 6px 20px rgba(75,191,191,0.4);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #bbb;
  font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid #e8e8e8;
}

.btn-google {
  width: 100%;
  padding: 11px;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-google:hover {
  background: #f8f8f8;
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-google svg { width: 18px; height: 18px; }

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  margin-top: 8px;
}
.forgot-link:hover { text-decoration: underline; }

.login-footer {
  text-align: center;
  padding: 16px 32px 24px;
  color: #aaa;
  font-size: 12px;
}

.error-box {
  background: #FDECEA;
  color: #721C24;
  border: 1px solid #F5C6CB;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.success-box {
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}
