body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

.left-panel {
    position: relative;
    background: #FF8D53;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.left-panel::before {
    content: "JOBIPO";
    position: absolute;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.laptop-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.employer-heading {
    color: white;
    margin-bottom: 30px;
    animation: slideInFromTop 1s ease-out;
}

.employer-heading h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.employer-heading p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.laptop-container {
    position: relative;
    animation: floatAnimation 3s ease-in-out infinite;
}

.laptop-container img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.laptop-container:hover img {
    transform: scale(1.05) translateY(-10px);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    animation: floatIcons 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 40%;
    left: 5%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.left-footer {
    position: absolute;
    bottom: 20px;
    left: 240px;
    color: white;
    font-size: 13px;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.right-panel {
    background-color: #f9f8ff;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5rem;
}

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

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.form-box h2 {
    font-weight: 700;
    color: #585858;
}

.form-box p {
    font-size: 15px;
    color: #585858;
}

.form-box a {
    color: #585858;
    text-decoration: underline;
    font-weight: 600;
}

.form-control {
    border-radius: 10px;
    height: 50px;
    border: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ff6a33;
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 51, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.btn-otp {
    background-color: #FF8D53;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-otp:hover {
    background-color: #e85a24;
    color: white;
    transform: translateY(-2px);
}

.btn-otp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* OTP Input Styles */
.otp-input-group {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: bold;
}

.otp-input:focus {
    border-color: #ff6a33;
    box-shadow: 0 0 0 0.2rem rgba(255, 106, 51, 0.25);
    outline: none;
}

.otp-input.filled {
    border-color: #28a745;
    background-color: #f8f9fa;
}

.otp-input.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
    background-image: none !important;
    box-shadow: none !important;
    padding-right: 12px !important; /* Reset to default padding or match other inputs */
    padding-left: 12px !important;
}

.otp-input.verification-success {
    border-color: #28a745;
    background-color: #d4edda;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

/* Animations */
@keyframes slideInFromTop {
    0% {
    opacity: 0;
    transform: translateY(-50px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
    transform: translateY(0px);
    }
    50% {
    transform: translateY(-20px);
    }
}

@keyframes floatIcons {
    0%, 100% {
    transform: translateY(0px);
    opacity: 0.6;
    }
    50% {
    transform: translateY(-15px);
    opacity: 1;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Timer Styles */
.timer-section {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.timer {
    font-size: 24px;
    font-weight: bold;
    color: #ff6a33;
}

.timer.text-danger {
    color: #dc3545 !important;
}

.pulse {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Fade Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .left-panel {
    padding: 3rem;
    }

    .right-panel {
    padding: 0 6rem;
    }

    .employer-heading h1 {
    font-size: 4rem;
    }

    .employer-heading p {
    font-size: 1.4rem;
    }

    .laptop-container img {
    max-width: 450px;
    }

    .form-box {
    max-width: 450px;
    }

    .logo-container img {
    width: 220px;
    text-align: center;
    }

    .floating-icon {
    font-size: 28px;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .left-panel {
    padding: 2.5rem;
    }

    .right-panel {
    padding: 0 4rem;
    }

    .employer-heading h1 {
    font-size: 3.2rem;
    }

    .employer-heading p {
    font-size: 1.1rem;
    }

    .laptop-container img {
    max-width: 380px;
    }

    .logo-container img {
    width: 190px;
    text-align: center;
    }

    .floating-icon {
    font-size: 22px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .login-panel .row {
    height: 100vh;
    }

    .left-panel {
    padding: 2rem;
    min-height: 50vh;
    }

    .right-panel {
    padding: 2rem 3rem;
    min-height: 50vh;
    }

    .left-panel::before {
    font-size: 12rem;
    }

    .employer-heading {
    margin-bottom: 20px;
    }

    .employer-heading h1 {
    font-size: 2.8rem;
    }

    .employer-heading p {
    font-size: 1rem;
    }

    .laptop-container img {
    max-width: 320px;
    }

    .logo-container img {
    width: 170px;
    }

    .form-box {
    max-width: 350px;
    }

    .floating-icon {
    font-size: 20px;
    }

    .otp-input-group {
    gap: 12px;
    }

    .otp-input {
    width: 48px;
    height: 48px;
    font-size: 22px;
    }
}

/* Tablet Portrait and Small Laptop (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .login-panel .row {
    flex-direction: column;
    }

    .left-panel, .right-panel {
    width: 100%;
    height: auto;
    min-height: 50vh;
    }

    .left-panel {
    padding: 2rem 1.5rem;
    order: 1;
    }

    .right-panel {
    padding: 2rem 1.5rem;
    order: 2;
    }

    .left-panel::before {
    font-size: 8rem;
    }

    .employer-heading {
    margin-bottom: 15px;
    }

    .employer-heading h1 {
    font-size: 2.2rem;
    }

    .employer-heading p {
    font-size: 0.9rem;
    }

    .laptop-container img {
    max-width: 280px;
    }

    .logo-container {
    margin-bottom: 25px;
    }

    .logo-container img {
    width: 160px;
    }

    .form-box {
    max-width: 100%;
    text-align: center;
    }

    .form-box h2 {
    font-size: 1.8rem;
    text-align: center;
    }

    .floating-icon {
    font-size: 18px;
    }

    .otp-input-group {
    gap: 10px;
    justify-content: center;
    }

    .otp-input {
    width: 45px;
    height: 45px;
    font-size: 20px;
    }

    .timer-section {
    padding: 12px;
    }

    .timer {
    font-size: 20px;
    }
}

/* Mobile Landscape (481px to 575px) */
@media (min-width: 481px) and (max-width: 575px) {
    .login-panel .row {
    flex-direction: column;
    }

    .left-panel, .right-panel {
    width: 100%;
    height: auto;
    min-height: 45vh;
    }

    .left-panel {
    padding: 1.5rem 1rem;
    order: 1;
    }

    .right-panel {
    padding: 1.5rem 1rem;
    order: 2;
    }

    .left-panel::before {
    content: "JOBIPO";
    position: absolute;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    }

    .employer-heading {
    margin-bottom: 10px;
    }

    .employer-heading h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    }

    .employer-heading p {
    font-size: 0.8rem;
    }

    .laptop-container img {
    max-width: 220px;
    }

    .logo-container {
    margin-bottom: 20px;
    }

    .logo-container img {
    width: 140px;
    }

    .form-box h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    }

    .form-box p {
    font-size: 14px;
    text-align: center;
    }

    .form-control {
    height: 45px;
    font-size: 14px;
    }

    .btn-otp {
    padding: 10px;
    font-size: 14px;
    }

    .floating-icon {
    font-size: 16px;
    }

    .otp-input-group {
    gap: 8px;
    }

    .otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
    }

    .timer-section {
    padding: 10px;
    margin: 15px 0;
    }

    .timer {
    font-size: 18px;
    }

    .left-footer {
    font-size: 11px;
    bottom: 10px;
    left: 20px;
    }
}

/* Mobile Portrait (320px to 480px) */
@media (max-width: 480px) {
    body {
    font-size: 14px;
    }

    .login-panel .row {
    flex-direction: column;
    }

    .left-panel, .right-panel {
    width: 100%;
    height: auto;
    min-height: 40vh;
    }

    .left-panel {
    padding: 1rem 0.8rem;
    order: 1;
    }

    .right-panel {
    padding: 1rem 0.8rem;
    order: 2;
    }

    .left-panel::before {
        content: "JOBIPO";
        position: absolute;
        font-size: 7rem;
        color: rgba(255, 255, 255, 0.1);
        font-weight: bold;
        z-index: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }

    .employer-heading {
    margin-bottom: 8px;
    }

    .employer-heading h1 {
    font-size: 1.5rem;
    margin-bottom: 3px;
    }

    .employer-heading p {
    font-size: 0.7rem;
    }

    .laptop-container img {
    max-width: 180px;
    }

    .logo-container {
    margin-bottom: 15px;
    }

    .logo-container img {
    width: 120px;
    }

    .form-box h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
    }

    .form-box p {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    }

    .form-control {
    height: 42px;
    font-size: 14px;
    border-radius: 8px;
    }

    .btn-otp {
    padding: 10px;
    font-size: 14px;
    border-radius: 25px;
    }

    .floating-icon {
    font-size: 14px;
    }

    .otp-input-group {
    gap: 6px;
    margin: 15px 0;
    }

    .otp-input {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 8px;
    }

    .timer-section {
    padding: 8px;
    margin: 12px 0;
    border-radius: 8px;
    }

    .timer {
    font-size: 16px;
    }

    .error-message {
    font-size: 12px;
    }

    .left-footer {
    font-size: 10px;
    bottom: 8px;
    left: 150px;
    }

    /* Adjust floating elements for mobile */
    .floating-elements {
    display: none;
    }
}

/* Extra Small Mobile (max 320px) */
@media (max-width: 320px) {
    .left-panel, .right-panel {
    min-height: 35vh;
    padding: 0.8rem 0.5rem;
    }

    .employer-heading h1 {
    font-size: 1.2rem;
    }

    .employer-heading p {
    font-size: 0.65rem;
    }

    .laptop-container img {
    max-width: 150px;
    }

    .logo-container img {
    width: 100px;
    }

    .form-box h2 {
    font-size: 1.2rem;
    text-align: center;
    }

    .form-control {
    height: 40px;
    font-size: 13px;
    }

    .otp-input-group {
    gap: 4px;
    }

    .otp-input {
    width: 35px;
    height: 35px;
    font-size: 14px;
    }

    .timer {
    font-size: 14px;
    }

    .btn-otp {
    font-size: 13px;
    padding: 8px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .left-panel, .right-panel {
    min-height: 50vh;
    }

    .left-panel {
    padding: 1rem;
    }

    .right-panel {
    padding: 1rem 2rem;
    }

    .employer-heading {
    margin-bottom: 10px;
    }

    .employer-heading h1 {
    font-size: 1.6rem;
    }

    .laptop-container img {
    max-width: 200px;
    }

    .floating-elements {
    display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-container img,
    .laptop-container img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    }
}
