body {
  font-family: "Roboto", sans-serif;
  background-color: #f8fafb; }

p {
  color: #b3b3b3;
  font-weight: 300; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Roboto", sans-serif; }

a {
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease; }
  a:hover {
    text-decoration: none !important; }

.content {
  padding: 7rem 0; }

h2 {
  font-size: 20px; }

@media (max-width: 991.98px) {
  .content .bg {
    height: 500px; } }

.content .contents, .content .bg {
  width: 50%; }
  @media (max-width: 1199.98px) {
    .content .contents, .content .bg {
      width: 100%; } }
  .content .contents .form-group, .content .bg .form-group {
    position: relative; }
    .content .contents .form-group label, .content .bg .form-group label {
      position: absolute;
      top: 127%;
      -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      transform: translateY(-50%);
      -webkit-transition: .3s all ease;
      -o-transition: .3s all ease;
      transition: .3s all ease; }
    .content .contents .form-group input, .content .bg .form-group input {
      background: transparent;
      border-bottom: 1px solid #ccc; }
    .content .contents .form-group.first, .content .bg .form-group.first {
      border-top-left-radius: 7px;
      border-top-right-radius: 7px; }
    .content .contents .form-group.last, .content .bg .form-group.last {
      border-bottom-left-radius: 7px;
      border-bottom-right-radius: 7px; }
    .content .contents .form-group label, .content .bg .form-group label {
      font-size: 12px;
      display: block;
      margin-bottom: 0;
      color: #b3b3b3; }
    .content .contents .form-group.focus, .content .bg .form-group.focus {
      background: #fff; }
    .content .contents .form-group.field--not-empty label, .content .bg .form-group.field--not-empty label {
      margin-top: -25px; }
  .content .contents .form-control, .content .bg .form-control {
    border: none;
    padding: 0;
    font-size: 20px;
    border-radius: 0; }
    .content .contents .form-control:active, .content .contents .form-control:focus, .content .bg .form-control:active, .content .bg .form-control:focus {
      outline: none;
      -webkit-box-shadow: none;
      box-shadow: none; }

.content .bg {
  background-size: cover;
  background-position: center; }

.content a {
  color: #888;
  text-decoration: underline; }

.content .btn {
  height: 54px;
  padding-left: 30px;
  padding-right: 30px; }

.content .forgot-pass {
  position: relative;
  top: 2px;
  font-size: 14px; }

.social-login a {
  text-decoration: none;
  position: relative;
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-block; }
  .social-login a span {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%); }
  .social-login a:hover {
    color: #fff; }
  .social-login a.facebook {
    background: #3b5998; }
    .social-login a.facebook:hover {
      background: #344e86; }
  .social-login a.twitter {
    background: #1da1f2; }
    .social-login a.twitter:hover {
      background: #0d95e8; }
  .social-login a.google {
    background: #ea4335; }
    .social-login a.google:hover {
      background: #e82e1e; }

.control {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 14px; }
  .control .caption {
    position: relative;
    top: .2rem;
    color: #888; }

.control input {
  position: absolute;
  z-index: -1;
  opacity: 0; }

.control__indicator {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background: #e6e6e6;
  border-radius: 4px; }

.control--radio .control__indicator {
  border-radius: 50%; }

.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
  background: #ccc; }

.control input:checked ~ .control__indicator {
  background: #583EF2; }

.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
  background: #583EF2; }

.control input:disabled ~ .control__indicator {
  background: #e6e6e6;
  opacity: 0.9;
  pointer-events: none; }

.control__indicator:after {
  font-family: 'icomoon';
  content: '\e5ca';
  position: absolute;
  display: none;
  font-size: 16px;
  -webkit-transition: .3s all ease;
  -o-transition: .3s all ease;
  transition: .3s all ease; }

.control input:checked ~ .control__indicator:after {
  display: block;
  color: #fff; }

.control--checkbox .control__indicator:after {
  top: 50%;
  left: 50%;
  margin-top: -1px;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%); }

.control--checkbox input:disabled ~ .control__indicator:after {
  border-color: #7b7b7b; }

.control--checkbox input:disabled:checked ~ .control__indicator {
  background-color: #7e0cf5;
  opacity: .2; }

/* ============================
   LOGIN PAGE — FLEET HUB CMS
   ============================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(150deg, #1c0505 0%, #3d0c0c 45%, #220606 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px 0;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 70% 55% at 15% 85%, rgba(198, 40, 40, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(198, 40, 40, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating decorative orbs */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    animation: floatOrb 8s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 180px;
    height: 180px;
    top: 8%;
    left: 5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: 12%;
    right: 8%;
    animation-delay: 3s;
}

.shape:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 25%;
    right: 18%;
    animation-delay: 5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50%       { transform: translateY(-18px) scale(1.04); opacity: 1; }
}

/* ── Main card ── */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.15);
    overflow: hidden;
    margin: 20px;
}

/* ── Left panel ── */
.login-left {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(155deg, #6b1212 0%, #9e1c1c 50%, #C62828 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle diamond/lattice texture */
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='none'/%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' stroke='rgba(0,0,0,0.12)' stroke-width='0.8' fill='none'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Gold vertical accent bar */
.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(201, 168, 76, 0.6) 30%, rgba(201, 168, 76, 1) 50%, rgba(201, 168, 76, 0.6) 70%, transparent 100%);
}

.logo-section {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 5px rgba(201, 168, 76, 0.35);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gold divider line */
.brand-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    margin: 14px auto 16px;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 6px;
}

.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 260px;
    margin: 0 auto;
}

.illustration {
    text-align: center;
    margin-top: 36px;
    position: relative;
    z-index: 1;
}

.illustration i {
    font-size: 110px;
    color: rgba(255, 255, 255, 0.15);
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.3));
}

/* Feature badges */
.feature-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-item i {
    font-size: 14px;
    color: #C9A84C;
    width: 16px;
    flex-shrink: 0;
}

/* ── Right panel ── */
.login-right {
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFFAF8;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #C62828;
    background: rgba(198, 40, 40, 0.07);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1A0505;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #8a7070;
}

/* Form */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3d1515;
    font-size: 13.5px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1.5px solid #e8d8d8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #fff;
    color: #1a0505;
}

.form-control::placeholder {
    color: #c4a8a8;
}

.form-control:focus {
    outline: none;
    border-color: #C62828;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #c4a8a8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.25s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #C62828;
}

.form-control.error {
    border-color: #c62828;
    background: #fff8f8;
}

.error-message {
    color: #c62828;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Remember me */
.remember-label {
    display: flex !important;
    align-items: center;
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #6b4545 !important;
    cursor: pointer;
    gap: 8px;
}

.remember-label input[type="checkbox"] {
    accent-color: #C62828;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Forgot password */
.forgot-password {
    text-align: right;
    margin-bottom: 28px;
}

.forgot-password a {
    color: #C62828;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
}

.forgot-password a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #C62828 0%, #8E1515 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(198, 40, 40, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

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

.footer-text {
    text-align: center;
    margin-top: 28px;
    color: #b09090;
    font-size: 13px;
}

.footer-text strong {
    color: #C62828;
    font-weight: 600;
}

/* ── Responsive ── */

/* Tablet */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        margin: 12px;
        max-height: none;
        border-radius: 16px;
    }

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

    .login-right {
        padding: 36px 28px;
    }

    .brand-title {
        font-size: 22px;
    }

    .login-title {
        font-size: 24px;
    }

    .illustration {
        display: none;
    }

    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
    }

    .feature-item {
        font-size: 12px;
        background: rgba(0, 0, 0, 0.15);
        padding: 5px 10px;
        border-radius: 20px;
        gap: 6px;
    }
}

/* Mobile — ưu tiên trải nghiệm đăng nhập */
@media (max-width: 540px) {
    body {
        padding: 0;
        align-items: stretch;
        background: #fff;
    }

    body::before { display: none; }
    .floating-shapes { display: none; }

    .login-container {
        grid-template-columns: 1fr;
        margin: 0;
        border-radius: 0;
        min-height: 100dvh;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .login-left {
        padding: 20px 22px 22px;
        background: linear-gradient(150deg, #6b1212 0%, #9e1c1c 55%, #C62828 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        flex-shrink: 0;
        /* min-height: 130px; */
    }

    .login-left::before,
    .login-left::after { display: none; }

    .logo-section {
        margin-bottom: 0;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .logo {
        width: 52px;
        height: 52px;
        border-radius: 13px;
        margin: 0;
        flex-shrink: 0;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    .logo img { border-radius: 9px; }

    .brand-name {
        font-size: 20px;
        letter-spacing: 2.5px;
        margin-bottom: 3px;
    }

    .brand-title {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.3;
    }

    .brand-divider,
    .brand-subtitle,
    .illustration,
    .feature-list { display: none; }

    /* Form panel — chiếm phần còn lại, không có khoảng trống */
    .login-right {
        flex: 1;
        padding: 28px 22px 32px;
        border-radius: 0;
        background: #fff;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .login-header {
        margin-bottom: 24px;
        text-align: left;
    }

    .login-header-badge {
        font-size: 11.5px;
        margin-bottom: 10px;
        padding: 5px 12px;
        letter-spacing: 0;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .login-subtitle { font-size: 13px; }

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

    .form-control {
        font-size: 16px; /* tránh zoom-in iOS */
        padding: 14px 16px 14px 46px;
    }

    .input-icon { font-size: 15px; left: 15px; }

    .btn-login {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        margin-top: 4px;
    }

    .footer-text { margin-top: 24px; }
}

@media (max-height: 700px) and (min-width: 541px) {
    .login-left,
    .login-right { padding: 24px 40px; }

    .logo-section { margin-bottom: 20px; }

    .login-header { margin-bottom: 20px; }

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

    .illustration { display: none; }

    .feature-list { margin-top: 16px; }
}
