
:root {
    --tip-blue: #024CA0;    /* TIP Cobalt Blue */
    --tip-yellow: #fbcb0d;  /* TIP Yellow */
    --white: #FFFFFF;
    --black: #000000;
    --gray: #666666;
}

body {
    background: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Futura', 'Poppins', sans-serif; /* TIP's recommended fonts */
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.signup-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    padding-top: 0;
    margin-top: -20px;
}

.brand-side {
    display: none;
    padding: 0.5rem;
}

@media (min-width: 992px) {
    .brand-side {
        display: block;
        flex: 1;
        text-align: center;
        color: var(--tip-blue);
        padding: 1rem 2rem;
        padding-top: 0;
    }

    .brand-side::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 70%;
        background: linear-gradient(to bottom, transparent, var(--tip-yellow), transparent);
    }

    .brand-side h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        font-weight: 700;
        border-bottom: 3px solid var(--tip-yellow);
        padding-bottom: 10px;
        display: inline-block;
        position: relative;
    }

    .brand-side p {
        font-size: 1.2rem;
        color: var(--gray);
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

.form-side {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--tip-yellow);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: var(--tip-blue);
    color: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--tip-yellow);
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
}

.card-header h3 {
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
    position: relative;
}

/* .form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding-right: 45px;
} */

/* Set a consistent width for all input fields */
.form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding-right: 45px;
    width: 100%;  /* Ensures the input fields stretch to fill available width */
}

/* Additional style to ensure the mobile input field matches the others */
#mobile {
    padding-right: 70px; /* Increase padding to accommodate country code dropdown */
}

/* Adjust the width of the intl-tel-input container */
.iti {
    width: 100%;  /* Ensure the intl-tel-input container takes the full width of its parent */
}

/* Adjust the input field inside the intl-tel-input container */
.iti input {
    width: 100%;  /* Make sure the input field inside the intl-tel-input container stretches to fill the space */
}

.form-control:focus {
    border-color: var(--tip-blue);
    box-shadow: 0 0 0 0.25rem rgba(2, 76, 160, 0.15);
    border-bottom: 2px solid var(--tip-yellow);
}

.input-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: all 0.3s ease;
}

.input-icon:focus-within i {
    color: var(--tip-blue);
}

.form-label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--tip-blue);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover {
    background: var(--tip-yellow);
    color: var(--tip-blue);
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78,84,200,0.3);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.alert {
    border-radius: 12px;
    border: none;
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    padding: 15px;
    margin-bottom: 25px;
}

.alert p {
    margin: 0;
    padding: 5px 0;
}

.card-body {
    padding: 30px;
}

.text-center a {
    color: var(--tip-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.text-center a:hover {
    color: var(--tip-yellow);
}

@media (max-width: 768px) {
    .card-header h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 20px;
    }

    .form-control {
        font-size: 0.95rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.brand-image {
    max-width: 450px;
    width: 90%;
    height: auto;
    margin-top: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(2, 76, 160, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.brand-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 76, 160, 0.2);
}

.brand-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(2, 76, 160, 0.1),
        rgba(251, 203, 13, 0.1)
    );
    border-radius: 15px;
}

.brand-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Enhance responsive design */
@media (max-width: 1200px) {
    .brand-image {
        max-width: 380px;
    }
    .brand-logo {
        max-width: 220px;
    }
}

@media (max-width: 991px) {
    .signup-wrapper {
        margin-top: 0;
        padding-top: 0;
    }
    
    .brand-side {
        padding: 0.5rem;
    }

    .brand-side::after {
        display: none;
    }

    .brand-logo {
        max-width: 200px;
    }
}

/* Add subtle animation for the welcome text */
.brand-side h1 {
    animation: slideIn 0.8s ease-out;
}

.brand-side p {
    animation: fadeInUp 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
