/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f1f3f6;
    color: #212121;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Layout */
#outerbox {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 20px;
}

#innerbox {
    display: flex;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
}

/* Left box styles */
.leftinnerbox {
    flex: 1;
    padding: 40px;
    background: #2874f0;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.para1 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}

.para2 {
    font-size: 18px;
    color: #dbdbdb;
    margin-bottom: 30px;
}

.signup-image {
    width: 75%;
    margin-top: 30px;
}

.signup-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
}

/* Right box styles */
.rightinnerbox {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.mobile, .name, .password {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbdbdb;
    border-radius: 2px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mobile:focus, .name:focus, .password:focus {
    border-color: #2874f0;
    outline: none;
}

.terms {
    margin: 20px 0;
    font-size: 12px;
    color: #878787;
}

.link {
    color: #2874f0;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.continue {
    background-color: #fb641b;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue:hover {
    background-color: #e85d17;
}

.login-link {
    background-color: #fff;
    color: #2874f0;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.login-link:hover {
    background-color: #f1f3f6;
}

/* Responsive design */
@media (max-width: 768px) {
    #innerbox {
        flex-direction: column;
    }

    .leftinnerbox {
        padding: 20px;
    }

    .rightinnerbox {
        padding: 20px;
    }

    .para1 {
        font-size: 24px;
    }

    .para2 {
        font-size: 16px;
    }

    .signup-image {
        width: 100%;
    }
}

/* Form validation styles */
.mobile:invalid, .name:invalid, .password:invalid {
    border-color: #ff6161;
}

.error-message {
    color: #ff6161;
    font-size: 12px;
    margin-top: 4px;
}

/* Loading state */
.continue:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}