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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url("http://truck-details.fun/images/truckstop_original.png") center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Geometric background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    z-index: 1;
}

/* Mountain road background */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("http://truck-details.fun//images/truckstop_original.png") center/cover;
    opacity: 0.3;
    z-index: 2;
}

.login-container {
    position: relative;
    z-index: 3;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    width: 100%;
    max-width: 370px;
    margin: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    box-sizing: border-box;
    margin: 0px auto;
    min-width: 0px;
    height: auto;
    max-height: 80px;
    max-width: 100%;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    position: relative;
}

.logo-icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.logo-domain {
    color: #6b7280;
    font-weight: 400;
}

.login-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: #000000;
    margin-bottom: 15px;
    font-size: 14px;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #263238;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.form-checkbox{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    color: rgb(121, 128, 135);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #dc2626;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #dc2626;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-button {
    width: 100%;
    color: white;
    padding: 14px;
    background: rgb(182, 2, 7);
    border: 1px solid rgb(182, 2, 7);
    border-radius: 2px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 5px;
}

.login-button:hover {
    background: #b91c1c;
}

.divider {
    text-align: center;
    margin-bottom: 16px;
    color: black;
    font-size: 14px;
    position: relative;
}

.google-button {
    width: 100%;
    background: white;
    color: #dc2626;
    border: 1px solid rgb(199, 202, 203);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.google-button:hover {
    background: #fef2f2;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.footer-link {
    color: black;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 16px;    
    transition: color 0.2s ease;
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 16px;
    }
}