/* ===========================================
   Modern Login & OTP Page - Split Screen Design
   Left: JobCard Image with Overlay
   Right: Login/OTP Forms
   =========================================== */

:root {
    --primary-green: #09A528;
    --primary-green-dark: #078521;
    --primary-green-light: #09A576;
    --secondary-blue: #1C398E;
    --accent-teal: #1E8078;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* ===========================================
   Main Container - Split Screen
   =========================================== */

.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===========================================
   Left Side - JobCard Image Section
   =========================================== */

.login-left {
    flex: 1;
    position: relative;
    background: linear-gradient(120deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated Background Pattern */
.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Shapes Background */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.1;
}

.shape {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 30%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(20px) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
}

/* Image Content */
.image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    color: white;
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: brandFloat 3s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.features-list li {
    padding: 12px 0;
    font-size: 16px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===========================================
   Right Side - Form Section
   =========================================== */

.login-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Welcome Header */
.welcome-header {
    margin-bottom: 40px;
    text-align: center;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

/* ===========================================
   Form Styling
   =========================================== */

.form-section {
    transition: all 0.4s ease;
}

.form-section.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.form-section.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8f9fa;
}

.form-control:focus {
    background: white;
    border-color: #333;
    box-shadow:none !important;
   
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Captcha Row */
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.captcha-image-wrapper {
    flex-shrink: 0;
}

.captcha-img {
    height: 52px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    user-select: none;
}

.captcha-input-wrapper {
    flex: 1;
}

.refresh-captcha-btn {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.refresh-captcha-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: rotate(180deg);
}

/* OTP Input */
.otp-input {
    font-size: 28px !important;
    text-align: center;
    letter-spacing: 12px;
    font-weight: 600;
    padding: 20px !important;
}

/* Buttons */
.btn-primary-custom {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(9, 165, 40, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 165, 40, 0.4);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* OTP Info */
.otp-info {
    text-align: center;
    margin-bottom: 25px;
}

.otp-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.otp-message {
    font-size: 14px;
    color: var(--text-light);
}

.masked-mobile {
    font-weight: 600;
    color: var(--primary-green);
}

/* Back Button */
.btn-back {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    border: 2px solid #e9ecef;
    background: white;
    color: var(--text-dark);
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(9, 165, 40, 0.05);
}

/* ===========================================
   Loader Overlay
   =========================================== */

.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loader-overlay.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===========================================
   Toast Notifications
   =========================================== */

.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 350px;
}

.toast-custom {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-custom.toast-danger {
    border-left: 4px solid #dc3545;
}

.toast-custom.toast-success {
    border-left: 4px solid var(--primary-green);
}

.toast-icon {
    font-size: 24px;
}

.toast-custom.toast-danger .toast-icon {
    color: #dc3545;
}

.toast-custom.toast-success .toast-icon {
    color: var(--primary-green);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.toast-close:hover {
    background: #f8f9fa;
    color: var(--text-dark);
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .login-right {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 26px;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .otp-input {
        font-size: 22px !important;
        letter-spacing: 8px;
    }
}

/* ===========================================
   Additional Animations
   =========================================== */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 200px;
    height: 200px;
}
div#loginSection {
    background: #f3f3f3;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ccc;
}
#login {
    position: absolute;
    top: 20px;
    left: 20px;
}

    #login img {
        max-width: 40%;
    }
 / *   R e s e n d   O T P   S e c t i o n   * / . r e s e n d - s e c t i o n { t e x t - a l i g n : c e n t e r ; m a r g i n - t o p : 2 0 p x ; p a d d i n g - t o p : 1 5 p x ; b o r d e r - t o p : 1 p x   s o l i d   # e 0 e 0 e 0 } . r e s e n d - t e x t { f o n t - s i z e : 1 4 p x ; c o l o r : # 6 6 6 ; m a r g i n - b o t t o m : 1 0 p x } . b t n - r e s e n d { b a c k g r o u n d : l i n e a r - g r a d i e n t ( 1 3 5 d e g , # 6 6 7 e e a   0 % , # 7 6 4 b a 2   1 0 0 % ) ; c o l o r : w h i t e ; b o r d e r : n o n e ; p a d d i n g : 1 0 p x   2 4 p x ; b o r d e r - r a d i u s : 8 p x ; f o n t - s i z e : 1 4 p x ; f o n t - w e i g h t : 6 0 0 ; c u r s o r : p o i n t e r ; t r a n s i t i o n : a l l   0 . 3 s   e a s e ; d i s p l a y : i n l i n e - f l e x ; a l i g n - i t e m s : c e n t e r ; g a p : 8 p x } . b t n - r e s e n d : h o v e r : n o t ( : d i s a b l e d ) { t r a n s f o r m : t r a n s l a t e Y ( - 2 p x ) ; b o x - s h a d o w : 0   4 p x   1 2 p x   r g b a ( 1 0 2 , 1 2 6 , 2 3 4 , 0 . 4 ) } . b t n - r e s e n d : d i s a b l e d { b a c k g r o u n d : # c c c ; c u r s o r : n o t - a l l o w e d ; t r a n s f o r m : n o n e } . b t n - r e s e n d   i { f o n t - s i z e : 1 4 p x } . r e s e n d - t i m e r { f o n t - s i z e : 1 4 p x ; c o l o r : # 6 6 7 e e a ; f o n t - w e i g h t : 6 0 0 ; m a r g i n - t o p : 1 0 p x } . r e s e n d - t i m e r   s p a n { f o n t - w e i g h t : 7 0 0 ; c o l o r : # 7 6 4 b a 2 }  
 