/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* padding: 20px; */
}
.btn-success {
    background-color: #5932EA !important;
    border-color: #5932EA !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 10px 30px!important;
    width: 100%;
    border-radius: 30px!important;
    font-size: 22px!important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #4527c4 !important;
    border-color: #4527c4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 50, 234, 0.3);
}
.login-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-height: 100%;
}

/* Left side styles */
.left-side {
    flex: 1;
    background: #FAFBFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
    min-height: 0;
}

.brand-section {
    margin-bottom: 40px;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.brand-suffix {
    color: #667eea;
}

.image-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.main-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.copyright {
    margin-top: auto;
}

.copyright p {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Right side styles */
.right-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: white;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* Form styles */
.login-form {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 20px 24px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    border-radius: 40px;
    border: 2px solid #e0e0e0;
}

.form-input:focus {
    outline: none;
    border-color: #5932EA;
    background: white;
    box-shadow: 0 0 0 3px rgba(89, 50, 234, 0.1);
}

.form-input::placeholder {
    color: #c0c0c0;
    font-weight: 400;
}

/* Modern Input Wrapper */
.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute !important;
    left: 24px !important;
    top: 22px !important;
    color: #a0a0a0;
    font-size: 18px;
    z-index: 10;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
}

.input-wrapper .phone-prefix {
    position: absolute !important;
    left: 60px !important;
    top: 22px !important;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    z-index: 10;
    pointer-events: none;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
}

.username-input-modern {
    padding-left: 105px !important;
}

.password-input-modern {
    padding-left: 60px !important;
}

.field-loginform-username,
.field-loginform-password {
    margin-bottom: 0;
}

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

/* Error messages */
.help-block {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 24px;
}

.has-error .form-input {
    border-color: #e74c3c !important;
    background: #ffffff;
}

.field-loginform-username.has-error .form-input,
.field-loginform-password.has-error .form-input {
    border-color: #e74c3c !important;
}

.input-wrapper .field-loginform-username.has-error .input-icon,
.input-wrapper .field-loginform-password.has-error .input-icon {
    color: #e74c3c;
}

.input-wrapper .field-loginform-username.has-error .phone-prefix {
    color: #e74c3c;
}

.field-loginform-username,
.field-loginform-password {
    position: relative;
    margin-bottom: 0;
    width: 100%;
    flex: 1;
}

.field-loginform-username .help-block,
.field-loginform-password .help-block {
    margin-top: 6px;
    margin-bottom: 0;
}

.field-loginform-username .form-input,
.field-loginform-password .form-input {
    width: 100%;
    display: block;
}

.input-wrapper {
    margin-bottom: 0;
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 0;
        height: 100%;
    }
    
    .login-wrapper {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .left-side {
        padding: 20px;
        min-height: auto;
        flex: 0 0 auto;
        order: 2; /* Move to bottom */
        border-top: 1px solid #e5e7eb;
        background: #FAFBFF;
    }
    
    .brand-section {
        display: none; /* Hide logo on mobile */
    }
    
    .brand-image {
        max-width: 120px;
    }
    
    .image-section {
        margin: 10px 0;
        display: flex;
        justify-content: center;
    }
    
    .main-image {
        max-height: 180px;
        width: auto;
    }
    
    .copyright {
        font-size: 11px;
        margin-top: 12px;
        text-align: center;
    }
    
    .copyright p {
        font-size: 11px;
        margin: 0;
    }
    
    .right-side {
        padding: 40px 24px 32px 24px;
        flex: 1;
        display: flex;
        align-items: flex-start;
        order: 1; /* Move to top */
    }
    
    .form-container {
        width: 100%;
        max-width: 100%;
    }
    
    .form-title {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 32px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-input {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .username-input-modern {
        padding-left: 100px !important;
    }
    
    .password-input-modern {
        padding-left: 56px !important;
    }
    
    .input-wrapper .input-icon {
        left: 20px !important;
        top: 20px !important;
        font-size: 16px;
    }
    
    .input-wrapper .phone-prefix {
        left: 56px !important;
        top: 20px !important;
        font-size: 15px;
    }
    
    .btn-success {
        font-size: 18px !important;
        padding: 14px 24px !important;
    }
    
    .help-block {
        font-size: 12px;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .right-side {
        padding: 28px 20px;
        padding-top: 40px;
    }
    
    .form-title {
        font-size: 1.25rem;
        margin-bottom: 28px;
        line-height: 1.3;
    }
    
    .form-input {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .username-input-modern {
        padding-left: 95px !important;
    }
    
    .password-input-modern {
        padding-left: 52px !important;
    }
    
    .input-wrapper .input-icon {
        left: 18px !important;
        top: 18px !important;
        font-size: 15px;
    }
    
    .input-wrapper .phone-prefix {
        left: 52px !important;
        top: 18px !important;
        font-size: 14px;
    }
    
    .btn-success {
        font-size: 16px !important;
        padding: 12px 20px !important;
    }
    
    .main-image {
        max-height: 150px;
    }
    
    .copyright {
        font-size: 10px;
    }
    
    .copyright p {
        font-size: 10px;
    }
}