* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: white;
}

.signup-container {
    flex: 1;
    padding: 340px 150px;
    max-width: 40%;
}

.chat-container {
    flex: 1;
    background-color: #f9f9f9;
    margin: 50px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
}

.chat-demo {
    padding: 300px 208px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-signup {
    background: linear-gradient(99.39deg, #01d18f 0.47%, #005aff 99.05%);
    color: white;
    border: none;
    font-weight: 500;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

/* Chat section */
.chat-avatar {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 35%;
    background: linear-gradient(99.39deg, #01d18f 0.47%, #005aff 99.05%);
    color:white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-message {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.chat-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chat-input {
    position: relative;
    width: 100%;
    margin-top: auto;
    bottom: 45px;
    padding: 0px 30px;
}

.chat-input input {
    width: 100%;
    padding: 15px 45px;
    border-radius: 25px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 16px;
}

.search-icon {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.send-icon {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Google and X logos */
.google-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.x-logo {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    filter: invert(1);
}

/* Mobile View CSS */
@media only screen and (max-width: 768px) {
    /* Hide chat container on mobile */
    .chat-container {
        display: none;
    }
    
    /* Make signup container take full width */
    .signup-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        margin: 60px 40px;
        box-shadow: none;

    }
    
    /* Adjust heading size */
    .signup-container h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    /* Adjust subtitle */
    .signup-container .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* Make form elements full width */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Adjust button styling */
    .btn-signup {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Adjust login link */
    .login-link {
        font-size: 14px;
        margin-top: 15px;
    }
}

/* For even smaller screens (phones) */
@media only screen and (max-width: 480px) {
    .signup-container {
        padding: 15px;
        margin: 85px 10px;
    }
    
    .signup-container h1 {
        font-size: 22px;
    }
    
    .form-control {
        padding: 10px;
    }
}