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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    width: 80%;
    max-width: 1200px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.left {
    flex: 1;
    padding: 90px;
    color: #28a745;
    background: url('https://leo.it.tab.digital/s/jZYadWTRQXzJysC/preview');
    background-size: cover;
    color: white;
    height: 900px;
    text-align: center;
    padding-right: 50px;
}

.left h1 {
    font-size: 2.5rem;
    margin-top: 200px;
}

.left p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.features img {
    width: 100px;
    margin-bottom: 20px;
}

.feature-text span {
    display: block;
    margin: 5px 0;
}

.right {
    flex: 1;
    padding: 40px;
}

.right h2 {
    font-size: 2rem;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.right form {
    display: flex;
    flex-direction: column;
}

.right label {
    margin-top: 10px;
    font-weight: bold;
}

.right input,
.right select {
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    font-size: 12px;
}

.phone-container {
    display: flex;
    gap: 10px;
}

.phone-code {
    flex: 0 0 100px;
}

.phone-number {
    flex: 1;
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.right button {
    padding: 12px;
    margin-top: 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.right button:hover {
    background-color: #218838;
}

.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    margin-bottom: 15px;
}

.social-login .or-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.social-login .or-divider::before,
.social-login .or-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.social-login .or-divider span {
    padding: 0 10px;
    color: #777;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-3px);
}

.login-link {
    margin-top: 15px;
    color: #555;
}

.login-link a {
    color: #28a745;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.border1 {
    padding: 20px;
}

.home-link {
    margin-bottom: 15px;
}

.home-link a {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
}

.home-link a:hover {
    text-decoration: underline;
}

/* Camera Styles */
.camera-container {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    background: #f9f9f9;
}

.camera-preview {
    text-align: center;
    margin-bottom: 15px;
}

.camera-preview video {
    border-radius: 10px;
    background: #000;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.camera-btn {
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.camera-btn:hover:not(:disabled) {
    background: #218838;
}

.camera-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.camera-btn i {
    margin-right: 5px;
}

.photo-preview {
    text-align: center;
    margin-top: 15px;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid #28a745;
}

#preview p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Services Section Styles */
.services-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.service-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.service-option label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.service-option:hover {
    background-color: #f0f8ff;
    border-color: #28a745;
    transform: translateY(-2px);
}

.service-option input[type="checkbox"]:checked+label {
    font-weight: bold;
    color: #28a745;
}

.service-option input[type="checkbox"]:checked {
    accent-color: #28a745;
}

/* Services with Icons */
.services-checkboxes.with-icons .service-option label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-checkboxes.with-icons .service-option i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #666;
}

.services-checkboxes.with-icons .service-option input[type="checkbox"]:checked+label i {
    color: #28a745;
}

/* Message Carousel Styles */
.message-carousel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
}

.message-slide {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #28a745;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.message-slide.show {
    transform: translateX(0);
    opacity: 1;
}

.message-slide.hide {
    transform: translateX(100%);
    opacity: 0;
}

.message-slide.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8fff9 100%);
}

.message-slide.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #fff5f6 100%);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-title.success {
    color: #155724;
}

.message-title.error {
    color: #721c24;
}

.message-icon {
    font-size: 18px;
}

.close-message {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-message:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.message-content {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #28a745;
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

.message-slide.error .progress-bar {
    background: #dc3545;
}

/* Success checkmark animation */
.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #28a745;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
        width: 90%;
    }

    .left,
    .right {
        flex: 1 1 100%;
        padding: 30px;
    }

    .left {
        height: auto;
        padding: 60px 30px;
    }

    .left h1 {
        margin-top: 0;
    }

    .right h2 {
        margin-top: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .message-carousel {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
    }

    .phone-container {
        flex-direction: column;
    }

    .phone-code {
        flex: 1;
    }

    .services-checkboxes {
        grid-template-columns: 1fr;
    }

    .camera-controls {
        flex-direction: column;
    }

    .camera-btn {
        width: 100%;
    }

    .message-carousel {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .message-slide {
        padding: 15px;
    }
}

/* Focus states for accessibility */
.right input:focus,
.right select:focus,
.camera-btn:focus,
.close-message:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .message-carousel,
    .social-login,
    .camera-container {
        display: none !important;
    }

    .container {
        box-shadow: none;
        width: 100%;
    }
}