/* Inline form field layout for registration forms */
.form-group-inline {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}
.form-label-inline {
    min-width: 140px;
    font-weight: 500;
}
.password-input-inline {
    display: flex;
    align-items: center;
}
.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #2563eb33;
}
body {
    background: #f6f9fa;
}

.auth-container {
    max-width: 900px;
    margin: 60px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .icon {
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #22223b;
}

.auth-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.auth-cards {
    display: flex;
    gap: 32px;
    width: 100%;
    justify-content: center;
}

.auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 2.2rem 2rem 1.5rem 2rem;
    flex: 1 1 340px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
   
    border-top: 4px solid #22c55e;
}

.auth-card.login-card {
    border-top: 4px solid #2563eb;
}

.auth-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22223b;
}

.auth-card .form-group {
    margin-bottom: 0.8rem;
}

.auth-card .form-group.phone-group {
    margin-bottom: 0.6rem;
}

.auth-card label {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.3rem;
    display: block;
    font-weight: 500;
}

.auth-card .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8f9fa;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.auth-card .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-card .password-input-wrapper {
    position: relative;
}

.auth-card .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.auth-card .toggle-password svg {
    width: 20px;
    height: 20px;
    stroke: #6c757d;
}

.auth-card .toggle-password:hover svg {
    stroke: #0056b3;
}

.auth-card .custom-file-input {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.auth-card .custom-file-input input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.auth-card .custom-file-label {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 1rem;
    color: #6c757d;
    text-align: left;
    cursor: pointer;
}

.auth-card .custom-file-label::after {
    content: "Choose File";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.auth-card .custom-file-input input[type="file"]:focus + .custom-file-label {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-card .alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-left: 4px solid #dc3545;
}

.auth-card .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.auth-card .register-btn {
    background-color: #22c55e;
    color: white;
    padding: 0.75rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-card .register-btn:hover {
    background-color: #16a34a;
}

.auth-card .login-btn {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-card .login-btn:hover {
    background-color: #1746a2;
}

.auth-card .card-footer {
    text-align: center;
    padding-top: 1rem;
}

.auth-card .card-footer a {
    color: #2563eb;
    text-decoration: none;
}

.auth-card .card-footer a:hover {
    color: #1746a2;
}

.car-image-container {
    text-align: center;
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.car-image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.password-requirements .requirement-item {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-requirements .requirement-item.valid {
    color: #28a745;
}

.password-requirements .requirement-item.valid::before {
    content: '✔';
    color: #28a745;
    font-size: 1rem;
}

.strength-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.9rem;
    margin-top: 6px;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .auth-container {
        max-width: 98vw;
        margin: 40px auto 0 auto;
    }
    .auth-cards {
        gap: 18px;
    }
    .auth-card {
        min-width: 260px;
        max-width: 360px;
        padding: 1.5rem 1rem 1rem 1rem;
    }
}

@media (max-width: 900px) {
    .auth-cards {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }
    .auth-card {
        width: 90vw;
        min-width: unset;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .auth-container {
        margin: 20px auto 0 auto;
        padding: 0 4px;
    }
    .car-image-container {
        display: none;
        height: auto;
    }
    .auth-header h1 {
        font-size: 1.5rem;
    }
    .auth-header p {
        font-size: 1rem;
    }
    .auth-card {
        padding: 1rem 0.5rem 0.7rem 0.5rem;
        font-size: 0.97rem;
        max-width: 98vw;
        flex: auto;
    }
    .auth-card h2 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    .auth-card .register-btn,
    .auth-card .login-btn,
    .auth-card .form-control {
        font-size: 0.97rem;
    }
    .auth-card.login-card .login-content {
        margin-top: 0 !important;
    }
    .auth-card.login-card .login-card-text {
        margin-bottom: 0.3rem !important;
    }
    .auth-card.login-card h2 {
        margin-bottom: 0 !important;
    }
}