/*******************************
    CUSTOMER REGISTRATION PAGE
    Split-screen layout with carousel
*******************************/

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

body {
    font-family: 'Anek Tamil', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* Container */
.register-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Fixed Carousel */
.register-left {
    width: 50%;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow: hidden;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    z-index: 2;
}

.carousel-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    animation: fadeInDown 1s ease-out;
}

.carousel-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.carousel-caption-custom {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.carousel-caption-custom h3 {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-caption-custom p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 87, 34, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 87, 34, 0.6);
    opacity: 1;
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-indicators {
    bottom: 2rem;
    z-index: 3;
    margin: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    margin: 0 6px !important;
    padding: 0 !important;
    text-indent: -999px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.carousel-indicators .active {
    width: 12px !important;
    height: 12px !important;
    background-color: #FF5722 !important;
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.6) !important;
    transform: scale(1.1) !important;
}

/* Right Side - Scrollable Form */
.register-right {
    width: 50%;
    margin-left: 50%;
    height: 100vh;
    overflow-y: auto;
    background: #FFFFFF;
}

.register-form-wrapper {
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-header h2 {
    color: #00112E;
    font-size: 2.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.75rem;
}

.form-header p {
    color: #66697A;
    font-size: 1.0625rem;
}

.form-section-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #E0E0E0, transparent);
}

.form-section-divider span {
    padding: 0 1rem;
    color: #FF5722;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label {
    color: #00112E;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.required-star {
    color: #FF5722;
    margin-left: 3px;
}

.form-control,
.form-select {
    padding: 0.875rem 1.125rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    background: #FAFAFA;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    color: #00112E;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FF5722' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #FF5722;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.08);
    outline: none;
}

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

.btn-register {
    background: linear-gradient(135deg, #FF5722 0%, #FF6A3D 100%);
    border: none;
    padding: 1.125rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.0625rem;
    color: #FFFFFF;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.btn-register:hover {
    background: linear-gradient(135deg, #FF6A3D 0%, #FF7D58 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.35);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register i {
    margin-right: 0.5rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E7EB;
}

.form-footer p {
    color: #66697A;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.form-footer a {
    color: #FF5722;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #FF6A3D;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.08);
    color: #C0392B;
    border-left: 4px solid #E74C3C;
}

.alert ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.alert li {
    margin-bottom: 0.25rem;
}

.optional-badge {
    display: inline-block;
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Custom Scrollbar */
.register-right::-webkit-scrollbar {
    width: 8px;
}

.register-right::-webkit-scrollbar-track {
    background: #F5F4EE;
}

.register-right::-webkit-scrollbar-thumb {
    background: #FF5722;
    border-radius: 4px;
}

.register-right::-webkit-scrollbar-thumb:hover {
    background: #FF6A3D;
}

/* Responsive */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
    }

    .register-left {
        width: 100%;
        height: 40vh;
        position: relative;
    }

    .register-right {
        width: 100%;
        margin-left: 0;
        height: 60vh;
    }

    .carousel-logo h1 {
        font-size: 2.5rem;
    }

    .carousel-caption-custom h3 {
        font-size: 1.5rem;
    }

    .carousel-caption-custom p {
        font-size: 1rem;
    }

    .register-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .carousel-logo i {
        font-size: 3.5rem;
    }

    .carousel-logo h1 {
        font-size: 2rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .register-form-wrapper {
        padding: 1.5rem 1rem;
    }
}