/* ==========================================
   MOKED CRM - Light Login Theme
   Applied via html.login-light class
   ========================================== */

/* Body */
html.login-light body {
    background: transparent !important;
}

/* Content + wrapper positioning */
html.login-light .content-page {
    margin-right: 0 !important;
}
html.login-light #wrapper {
    min-height: unset !important;
}
html.login-light .content,
html.login-light .container {
    background: transparent !important;
}

/* Logo area above wrapper */
.login-logo-area {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 10px;
    position: relative;
    z-index: 10;
}
.login-logo-area img {
    max-height: 70px;
    margin: 0 auto;
    display: block;
}

/* Wrapper page */
html.login-light .wrapper-page {
    position: relative;
    z-index: 10;
    width: 420px;
    margin: 0 auto;
    padding-top: 0;
}

/* Card */
html.login-light .card-box {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
    padding: 32px !important;
}

/* Typography */
html.login-light .card-box,
html.login-light .card-box label,
html.login-light .card-box small,
html.login-light .card-box span,
html.login-light .card-box p,
html.login-light .panel-body,
html.login-light .panel-heading {
    color: #334155 !important;
}

html.login-light h2.text-center .text-custom,
html.login-light .text-custom,
html.login-light .panel-heading h3 {
    color: #1e293b !important;
}

/* Form controls */
html.login-light .form-control {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #334155 !important;
    height: 48px !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    transition: border-color 0.25s, box-shadow 0.25s;
}

/* Standalone input focus (not inside input-group) */
html.login-light .form-control:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
    background: #fff !important;
}

/* Input group: unified focus glow on the wrapper, remove individual glow */
html.login-light .input-group {
    position: relative;
}
html.login-light .input-group:focus-within {
    border-radius: 12px !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
html.login-light .input-group .form-control:focus {
    box-shadow: none !important;
}
html.login-light .input-group:focus-within .form-control {
    border-color: #6366f1 !important;
    box-shadow: none !important;
    background: #fff !important;
}
html.login-light .input-group:focus-within .input-group-addon {
    border-color: #6366f1 !important;
    border-left: none !important;
    background: #fff !important;
    color: #6366f1 !important;
}

html.login-light .form-control::placeholder {
    color: #94a3b8 !important;
}

html.login-light .form-control:-webkit-autofill,
html.login-light .form-control:-webkit-autofill:hover,
html.login-light .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Input group */
html.login-light .input-group {
    display: table !important;
    width: 100%;
}

/* Input group addon (icon) */
html.login-light .input-group-addon,
html.login-light .round_form .input-group .input-group-addon,
html.login-light .input-group-addon.right-raduis {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: none !important;
    color: #6366f1 !important;
    border-radius: 0 12px 12px 0 !important;
    font-size: 16px;
    height: 48px !important;
    line-height: 46px !important;
    padding: 0 14px !important;
    display: table-cell !important;
    vertical-align: middle !important;
    min-width: 48px;
    width: 1% !important;
    white-space: nowrap;
}

/* Input next to addon */
html.login-light .input-group .form-control,
html.login-light .round_form .input-group .form-control {
    display: table-cell !important;
    border-radius: 12px 0 0 12px !important;
    border-right: none !important;
}

/* Standalone inputs */
html.login-light .form-group > .form-control,
html.login-light .form-group > div > .form-control:only-child {
    border-radius: 12px !important;
}

/* Primary & Success buttons */
html.login-light .btn-success.btn-block,
html.login-light .btn-primary.btn-block {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 28px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.25s !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25) !important;
    color: #fff !important;
    height: auto !important;
}

html.login-light .btn-success.btn-block:hover,
html.login-light .btn-primary.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35) !important;
}

/* Non-block primary/success */
html.login-light .btn-primary:not(.btn-block),
html.login-light .btn-info {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
}

/* WhatsApp OTP button */
html.login-light .btn-success:not(.btn-block) {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2) !important;
}

/* Google login button */
html.login-light .btn-google {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    color: #334155 !important;
    transition: all 0.25s !important;
}
html.login-light .btn-google:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Back/inverse button */
html.login-light .btn-inverse {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 12px !important;
}
html.login-light .btn-inverse:hover {
    background: #e2e8f0 !important;
}

/* Pink button (signup) */
html.login-light .btn-pink {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
}

/* Links */
html.login-light a.text-dark,
html.login-light a.text-primary,
html.login-light .form-group a,
html.login-light .btn-link {
    color: #6366f1 !important;
    text-decoration: none;
    transition: color 0.25s;
}
html.login-light a.text-dark:hover,
html.login-light a.text-primary:hover,
html.login-light .form-group a:hover,
html.login-light .btn-link:hover {
    color: #4f46e5 !important;
    text-decoration: none;
}

/* Footer links */
html.login-light .row .text-primary b {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Error messages */
html.login-light .text-danger {
    color: #dc2626 !important;
}

/* Alert boxes */
html.login-light .alert-info {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
    border-radius: 12px !important;
}

html.login-light .alert-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
    border-radius: 12px !important;
}

html.login-light .alert-success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #16a34a !important;
    border-radius: 12px !important;
}

/* Panel overrides */
html.login-light .panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
html.login-light .panel-primary {
    border: none !important;
}
html.login-light .panel-body {
    background: transparent !important;
}

/* Logo image inside card (legacy) */
html.login-light .card-box .img-responsive {
    max-height: 180px !important;
}

/* Muted text */
html.login-light .text-muted {
    color: #64748b !important;
}

/* Generic headings */
html.login-light h1,
html.login-light h2,
html.login-light h3,
html.login-light h4,
html.login-light p,
html.login-light nav {
    color: #334155 !important;
}

/* Bold/ltr text in OTP */
html.login-light bold,
html.login-light .bold.ltr {
    color: #6366f1 !important;
}

/* Form validation icons */
html.login-light .glyphicon-ok {
    color: #16a34a !important;
}
html.login-light .glyphicon-remove {
    color: #dc2626 !important;
}

/* Recovery tabs */
html.login-light .btn-tab-recover {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    transition: all 0.2s;
}
html.login-light .btn-tab-recover.active {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
}

/* Branding footer */
.login-light-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}
.login-light-footer a {
    color: #64748b !important;
    text-decoration: none;
}
.login-light-footer a:hover {
    color: #6366f1 !important;
}

/* ==========================================
   Taskey-style Login Inputs
   ========================================== */

/* System title with gradient */
.login-system-title {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    text-align: center;
}

/* Field wrapper */
html.login-light .field {
    margin-bottom: 20px;
}
html.login-light .field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155 !important;
    margin-bottom: 6px;
}

/* Input wrap with icon */
.login-input-wrap {
    position: relative;
}
.login-input {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.login-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}
.login-input::placeholder {
    color: #94a3b8;
}
.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}
.login-input:focus + .login-input-icon svg {
    stroke: #6366f1;
}

/* Icon inside input (RTL: positioned on the right) */
.login-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-input-icon svg {
    stroke: #94a3b8;
    transition: stroke 0.25s;
}

/* ==========================================
   OTP / 2FA Screens
   ========================================== */

.otp-icon {
    text-align: center;
    margin-bottom: 12px;
}
.otp-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #243755;
    margin-bottom: 6px;
}
.otp-subtitle {
    text-align: center;
    font-size: 14px;
    color: #8a95a5;
    margin-bottom: 24px;
    line-height: 1.5;
}
.otp-field {
    margin-bottom: 16px;
}
.otp-field input {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #243755;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.otp-field input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    background: #fff;
}
.otp-field input::placeholder {
    font-size: 15px;
    letter-spacing: normal;
    font-weight: 400;
    color: #94a3b8;
}
.otp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}
.otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.otp-info {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
}
.otp-error {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
}
.otp-warning {
    text-align: center;
    font-size: 14px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.otp-alt {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.otp-alt-label {
    font-size: 13px;
    color: #8a95a5;
    margin-bottom: 8px;
}
.otp-alt a {
    font-size: 14px;
    color: #6366f1 !important;
    text-decoration: none !important;
}
.otp-alt a:hover {
    color: #4f46e5 !important;
}
.otp-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 14px;
    color: #94a3b8 !important;
    text-decoration: none !important;
}
.otp-back:hover {
    color: #64748b !important;
}

/* Responsive */
@media (max-width: 480px) {
    html.login-light .wrapper-page {
        width: 92% !important;
        padding-top: 0;
    }
    html.login-light .card-box {
        padding: 24px 20px !important;
    }
    .login-logo-area {
        padding-top: 20px;
    }
    .login-logo-area img {
        max-height: 50px;
    }
}
