/* Split-panel modern design */
body {
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f0f2f5;
}

.signup-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #004225;
    background-image: linear-gradient(135deg, #57cb86 0%, #5ac794 100%);
    padding: 20px;
    box-sizing: border-box;
}

.signup-inner-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color:rgb(255, 255, 255);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.signup-form-panel {
    width: 60%;
    background-color:rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-sizing: border-box;
    position: relative;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #005329;
}

.back-button svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.signup-image-panel {
    width: 40%;
    background-color:rgb(255, 255, 255);
    background-size: cover; 
    background-image: url('https://resume30.ai/img/app_v2/login/signup.jpg');
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 20px;
    overflow: hidden;
}

.signup-image-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.signup-image-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0 40px;
    max-width: 500px;
}

.signup-image-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.signup-image-text p {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 900;
}

.signup-form-container {
    width: 100%;
    max-width: 520px;
    background-color: white;
    border-radius: 20px;
    padding: 50px;
}

.signup-header {
    margin-bottom: 25px;
    text-align: center;
}

.signup-logo {
    display:none;
    margin-bottom: 5px;
    text-align: center;
}

.signup-logo img {
    height: 24px;
    width: auto;
}

.signup-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0px;
}

.signup-subtitle {
    font-size: 16px;
    color: #777;
    margin: 0;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 30px;
}

.signup-body {
    margin-top:50px;
    margin-bottom: 20px;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: left;
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #f9f9f9;
    background-clip: padding-box;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.form-control:focus {
    color: #333;
    background-color: #fff;
    border-color: #005329;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 83, 41, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 14px 24px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    margin-bottom: 16px;
}

.btn-primary {
    color: #fff;
    background-color: #005329;
    border-color: #005329;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: #00431f;
    border-color: #00431f;
}

.btn-outline {
    color: #666;
    background-color: transparent;
    border-color: #ddd;
    border-radius: 30px;
}

.btn-outline:hover {
    color: #333;
    background-color: #f8f9fa;
    border-color: #ccc;
}

.btn-link {
    font-weight: 400;
    color: #666;
    background-color: transparent;
    border: none;
    padding: 8px 0;
    font-size: 14px;
}

.btn-link:hover {
    color: #005329;
    text-decoration: none;
}

/* Divider */
.email-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    height: 40px;
    box-sizing: border-box;
margin-left:auto;
margin-right:auto;
}

.email-button:hover {
    background-color: #f8f9fa;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Error message */
.error-message {
    background-color: #fff8f8;
    border-left: 3px solid #ff4d4f;
    color: #cf1322;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}

/* Terms text */
.terms-text {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    line-height: 1.5;
    text-align: center;
}

.terms-text a {
    color: #005329;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Login link styles */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #005329;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Loading state */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 83, 41, 0.1);
    border-radius: 50%;
    border-top-color: #005329;
    animation: spinner 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

/* Success state */
.success-container {
    padding: 30px 20px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(0, 83, 41, 0.1);
    border-radius: 50%;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: #005329;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}

.success-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.redirect-text {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

/* Verification code page */
.verification-code {
    letter-spacing: 2px;
    text-align: center;
    font-weight: 500;
}

.resend-timer {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
    text-align: center;
}

.resend-timer span {
    color: #005329;
    font-weight: 500;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .signup-container {
        padding: 0;
    }
    
    .signup-inner-container {
        flex-direction: column;
        border-radius: 0;
    }
    
    .signup-form-panel,
    .signup-image-panel {
        width: 100%;
    }
    
    .signup-image-panel {
        min-height: 300px;
        order: -1;
        margin: 0;
        border-radius: 0;
    }
    
    .signup-form-panel {
        padding: 30px;
    }
    
    .signup-form-container {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .signup-form-panel {
        padding: 20px 15px;
    }
    
    .signup-image-panel {
        min-height: 200px;
    }
    
    .signup-image-text h2 {
        margin-top:15px;
        font-size: 24px;
    }
    
    .signup-image-text {padding-top:50px;}

    .signup-image-text p {
        font-size: 18px;
        margin-top:-5px;
    }
    
    .form-control,
    .btn {
        padding: 10px 15px;
    }
}

/* Button styles */
.google_button {display: block; width: 100%; margin: 0px auto;padding-left: 10px;}

.divider {
    display: flex;
    align-items: center; 
    text-align: center; 
    margin: 20px 0;
}

.divider-line { 
    flex: 1; 
    height: 1px; 
    background-color: #e0e0e0; 
    margin: 0 15px;
}

.divider-text {
    color: #666;
    font-size: 14px;
}

.email_button {       
    width: 100%;
    text-align: center;
    padding: 12px 0px;
    background: #ffffff;
    color: #444;
    font-size: 14px;
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.email_button:hover {
    background-color: #f9f9f9;
}

.full_button {
    background: #005329;
    color: white; 
    width: 100%;
    font-size: 16px;
    padding: 12px 0px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.full_button:hover {
    background: #006633;
}

.word_button{
    background: transparent; 
    color: #555; 
    width: 100%; 
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 0;
    transition: all 0.2s ease;
}

.word_button:hover {
    color: #005329;
}

/* Form elements */
.signdiv input {
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    width: calc(100% - 30px);
    border: 1px solid #e0e0e0;
    text-align: left;
    transition: border-color 0.2s ease;
    background-color: #f9f9f9;
    color: #333;
}

.signdiv input:focus {
    border-color: #005329;
    outline: none;
    background-color: #fff;
}

.signdiv h3 {
    font-size: 24px; 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.signdiv label {
    display: block; 
    margin: 0 0 8px; 
    text-align: left; 
    font-size: 14px; 
    font-weight: 500;
    color: #444;
}

.remark { font-size:12px; color:grey; margin: 5px 0px; text-align:left; }

/* Loading and animations */
.loading_inner img{
    width: 100px;
    height: auto;  
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.page{min-height: 200px}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error messaging */
.errordiv {    
    background: #ffe6e6;
    padding: 10px 15px;
    margin: 0px 0px 15px 0px;
    border-radius: 4px;
    border-left: 3px solid #ff3333;
}

.errordiv p{ 
    font-size: 14px; 
    color: #d32f2f;
    margin: 0;
}

.desp_agree {
    font-size: 12px; 
    color: #666; 
    margin-top: 20px;
    line-height: 1.5;
}

.desp_agree a {
    color: #005329;
    text-decoration: none;
}

.desp_agree a:hover {
    text-decoration: underline;
}

.signup_desp {
    font-size: 16px; 
    margin-top: 10px; 
    margin-bottom: 25px; 
    color: #555;
    line-height: 1.4;
}

.forgot-password {
    font-size: 12px; 
    color: #666; 
    margin-top: 50px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px){
    .google_button_desktop {display: block;}
    .google_button_mobile {display: none;}
}
/*------------------------------------------*/
@media (max-width: 768px){
    .signup_inner {width: 90%; max-width: 400px; padding: 20px;}
    .signdiv h3 {font-size: 30px;}
    .signup_desp {font-size: 18px; margin-top: 0px;}
    .signup_h2 {font-size: 30px;}
    .signup_comma {display: none;}
    .signup_desp i{display: block;}
    .signup-form-container {padding: 70px 15px 30px 15px;}
    .google_button_desktop {display: none;}
    .google_button_mobile {display: block;}
    .signup-image-panel {
        background-image: url('https://resume30.ai/img/app_v2/login/signup_mobile.jpg');
        background-position: top;
    }
    .email-button {width:320px;}
    .signup-subtitle {font-size: 14px;}
}