body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #eceff1, #b0bec5);
    height: 100vh;
    overflow: auto;
    color: #1a237e;
}

.body-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Form Page */
.form-page {
    width: 100%;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-page.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Panels */
.left-panel {
    background: linear-gradient(135deg, #1a237e, #26a69a);
    color: #ffffff;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.left-panel > * {
    padding: 20px;
}

.right-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Layouts */
@media (min-width: 1024px) {
    .container {
        max-width: 800px;
        display: flex;
        flex-direction: row;
    }
    .form-page {
        flex-direction: row;
    }
    .left-panel {
        flex: 4;
    }
    .left-panel > * {
        padding: 40px;
    }
    .right-panel {
        flex: 3;
        padding: 30px;
    }
    .login-img {
        width: 300px;
        height: 300px;
        border-radius: 8px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        max-width: 700px;
    }
    .form-page {
        flex-direction: column;
    }
    .left-panel > * {
        padding: 30px;
    }
    .right-panel {
        padding: 30px;
    }
    .login-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767px) {
    .container {
        max-width: 100%;
        margin: 10px;
    }
    .form-page {
        flex-direction: column;
    }
    .left-panel > * {
        padding: 20px;
    }
    .right-panel {
        padding: 20px;
    }
    .login-img {
        width: 180px;
        height: 180px;
    }
}

/* Left Panel Content */
.login-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.left-panel p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.left-panel p span {
    color: #ffffff;
    font-weight: 500;
}

/* Right Panel Content */
.right-panel h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 20px;
}

.right-panel h2 span {
    color: #26a69a;
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
}

.underline-input {
    border: none;
    border-bottom: 2px solid #1a237e;
    border-radius: 0;
    padding: 12px 10px;
    font-size: 1rem;
    color: #1a237e;
    width: 100%;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.underline-input:focus {
    border-color: #26a69a;
}

.underline-input[readonly] {
    background: #eceff1;
    cursor: not-allowed;
    border-color: #b0bec5;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 10px;
    font-size: 1rem;
    color: #1a237e;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
}

.input-group label.active {
    top: -12px;
    left: 5px;
    font-size: 0.75rem;
    color: #26a69a;
    opacity: 1;
}

.employee-id-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    flex-wrap: nowrap;
    position: relative;
}

.employee-id-group .underline-input {
    padding-left: 40px;
    flex-grow: 1;
    padding-right: 40px;
}

.employee-id-prefix {
    position: absolute;
    top: 12px;
    left: 10px;
    font-size: 1rem;
    color: #1a237e;
    font-weight: 500;
}

/* Email Group */
.email-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    position: relative;
}

.email-group .input-group {
    width: 100%;
    max-width: none;
}

.email-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #26a69a #eceff1;
    padding-bottom: 6px;
    width: 100%;
    position: relative;
}

.email-scroll-wrapper .underline-input {
    width: auto;
    min-width: 100%;
    display: inline-block;
    padding-right: 30px;
    white-space: nowrap;
}

/* Custom Scrollbar for Webkit Browsers */
.email-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.email-scroll-wrapper::-webkit-scrollbar-track {
    background: #eceff1;
    border-radius: 3px;
}

.email-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #26a69a;
    border-radius: 3px;
}

.email-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1a237e;
}

/* Verify Button */
.verify-btn {
    background: linear-gradient(135deg, #1a237e, #26a69a);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    margin-top: 8px;
    align-self: flex-end;
}

.verify-btn:hover {
    background: linear-gradient(135deg, #26a69a, #1a237e);
}

/* Email Verified Tick Symbol */
.email-verified {
    color: #26a69a;
    font-size: 1.2rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Fill Button */
.fill-btn {
    background: linear-gradient(135deg, #1a237e, #26a69a);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.fill-btn:hover {
    background: linear-gradient(135deg, #26a69a, #1a237e);
}

/* Employee Filled Tick Symbol */
.employee-filled {
    color: #26a69a;
    font-size: 1.2rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Privacy Policy Group */
.privacy-group {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    position: relative;
}

.privacy-symbol {
    font-size: 1.2rem;
    margin-right: 5px;
    color: #1a237e;
}

.privacy-text {
    font-size: 1rem;
    color: #1a237e;
    margin-right: 5px;
}

.privacy-link {
    color: #1a237e;
    text-decoration: underline;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #26a69a;
}

/* Privacy Policy Tick Symbol */
.privacy-verified {
    color: #26a69a;
    font-size: 1.2rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    align-items: center;
}

.btn-custom {
    background: linear-gradient(135deg, #1a237e, #26a69a);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    cursor: pointer;
}

.btn-custom:hover {
    background: linear-gradient(135deg, #26a69a, #1a237e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signin-text {
    background: none;
    border: none;
    color: #1a237e;
    font-size: 1rem;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.signin-text:hover {
    color: #26a69a;
    text-decoration: underline;
}

.signin-text i {
    margin-right: 5px;
}

/* OTP Container */
.otp-container {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
}

.otp-container .input-group {
    flex-grow: 1;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #1a237e;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #26a69a;
}

.password-hint {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-top: 5px;
    text-align: left;
}

/* Error Message */
.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    max-width: 350px;
}

/* Popup Message */
.popup-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    background: #1a237e;
    border: 1px solid #26a69a;
    box-shadow: 0 4px 16px rgba(0, 0, 0);
    transition: opacity 0.3s ease;
}

.popup-message.success {
    background: #26a69a;
    border-color: #1a237e;
}

.popup-message.error {
    background: #d32f2f;
    border-color: #1a237e;
}

/* Responsive Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .right-panel form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .button-group {
        grid-column: span 2;
    }
    .otp-container {
        grid-column: span 2;
    }
    .email-group {
        grid-column: span 2;
        max-width: 100%;
    }
    .employee-id-group {
        grid-column: span 2;
        max-width: 100%;
        position: relative;
        flex-wrap: nowrap;
    }
    .employee-id-group .fill-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
    }
    .privacy-group {
        grid-column: span 2;
        max-width: 100%;
        position: relative;
    }
    .otp-container .btn-custom {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .right-panel form {
        display: flex;
        flex-direction: column;
    }
    .btn-custom {
        padding: 12px;
        font-size: 0.95rem;
    }
    .employee-id-group {
        position: relative;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .employee-id-group .fill-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
    }
    .email-group {
        max-width: 100%;
    }
    .privacy-group {
        max-width: 100%;
    }
    .otp-container .btn-custom {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}