:root {
  --3b-red: #e30613;
  --3b-white: #ffffff;
  --3b-light-gray: #f5f5f5;
  --3b-gray: #dddddd;
  --3b-dark-gray: #333333;
  --3b-success: #28a745;
  --3b-danger: #dc3545;
  --3b-warning: #ffc107;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background-color: #f5f5f5;
  /* background-image: linear-gradient(rgba(220, 220, 220, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 220, 220, 0.5) 1px, transparent 1px);
  background-size: 20px 20px; */
  min-height: 100vh;
}

/* Header styles */
.header-top {
  background-color: var(--3b-red);
  height: 60px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.promo-banner {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.promo-banner img {
  height: 40px;
  display: block;
}

.header-button {
  background-color: transparent;
  color: var(--3b-white);
  border: 2px solid var(--3b-white);
  border-radius: 20px;
  padding: 5px 15px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.header-button:hover {
  background-color: var(--3b-white);
  color: var(--3b-red);
}

.header-button i {
  margin-right: 5px;
}

/* Logo styles */
.logo-container {
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100px;
  height: 100px;
  background-color: var(--3b-red);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 32px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Form styles */
.form-container {
  max-width: 450px;
  margin: 40px auto;
  background-color: var(--3b-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-header {
  background-color: var(--3b-red);
  color: var(--3b-white);
  padding: 20px;
  text-align: center;
  position: relative;
}

.form-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-header h3:after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: white;
}

.form-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--3b-dark-gray);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--3b-gray);
  border-radius: 5px;
  font-size: 16px;
  background-color: #f8f9fa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--3b-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.phone-field {
  position: relative;
}

.phone-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.phone-field .form-control {
  padding-left: 40px;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--3b-red);
}

.password-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-primary {
  color: var(--3b-white);
  background-color: var(--3b-red);
  border-color: var(--3b-red);
}

.btn-primary:hover {
  background-color: #c70512;
  border-color: #c70512;
}

.btn-block {
  display: block;
  width: 100%;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-footer a {
  color: var(--3b-red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.form-footer a:hover {
  color: #c70512;
  text-decoration: underline;
}

.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.has-icon .form-control {
  padding-left: 40px;
}

.has-icon {
  position: relative;
}

.input-error {
  border-color: var(--3b-danger) !important;
}

.field-error {
  color: var(--3b-danger);
  font-size: 12px;
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .form-container {
    margin: 20px 15px;
  }

  .form-body {
    padding: 20px;
  }

  .header-top {
    padding: 0 10px;
  }

  .promo-banner img {
    height: 30px;
  }

  .header-button {
    font-size: 12px;
    padding: 4px 10px;
  }
}

