* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #FFFFFF;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Use the truck background image */
    background-image: url('../img/login-img1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: background-image 0.5s ease-in-out;
}

/* Add a subtle dark overlay so the white text is always readable regardless of the background image */
.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Left side content */
.left-content {
    position: absolute;
    left: 100px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 357px;
    z-index: 10;
}

.pagination {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0.55px solid #FFFFFF;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #FFFFFF;
    border: none;
}

.title {
    font-weight: 600;
    font-size: 28px;
    line-height: 32px;
    color: #FFFFFF;
}

.subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

/* Right side login box */
.login-box {
    position: absolute;
    right: 125px;
    top: 50%;
    transform: translateY(-50%);
    width: 447px;
    background: #FEFEFE;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 82px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo {
    width: 96px;
    height: 70px;
    background: url('../img/logo.png') no-repeat center center / contain;
    margin-bottom: 8px;
    align-self: center;
}

.login-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 22px;
    text-align: center;
    color: #2B57C1;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #4C5C74;
}

.input-group input {
    width: 100%;
    height: 50px;
    background: rgba(94, 122, 123, 0.02);
    border: 1px solid #EAEAEA;
    box-shadow: 0px 0px 4px #EFF6FF;
    border-radius: 4px;
    padding: 16px 12px;
    font-weight: 500;
    font-size: 14px;
    color: #4C5C74;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #2B57C1;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 112px;
    height: 44px;
    border: 1px solid #0051C8;
    border-radius: 4px;
    background: transparent;
    color: #0051C8;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #F0F5FF;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    background: #0051C8;
    border-radius: 4px;
    border: none;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #003E99;
}

/* Responsive styles to make it look good on smaller screens too */
@media (max-width: 1024px) {
    .left-content {
        left: 50px;
        bottom: 80px;
    }
    .login-box {
        right: 50px;
        padding: 40px 40px;
        width: 400px;
    }
}

@media (max-width: 768px) {
    .left-content {
        display: none; /* Hide text on small screens */
    }
    .login-box {
        right: 50%;
        transform: translate(50%, -50%);
        width: 90%;
        max-width: 400px;
    }
}

/* Sign-in errors and the two-factor code step (moved from the Blade views). */
.login-error { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #FDECEA; color: #B42D1A; font-size: 13px; }

.login-status { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #EBF2FF; color: #0051C8; font-size: 13px; }
.code-hint { font-size: 13px; color: #4A5568; margin: -4px 0 16px; }
#code { letter-spacing: 8px; font-size: 20px; text-align: center; }
.link-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.link-row button, .link-row a { background: none; border: 0; padding: 0; color: #0051C8; cursor: pointer; font: inherit; text-decoration: underline; }
.link-row button:focus-visible, .link-row a:focus-visible { outline: 2px solid #0051C8; outline-offset: 2px; border-radius: 2px; }
#code::placeholder { letter-spacing: 8px; color: #CBD5E0; }
