
<div id="layout-wrapper">
    <div class="inner-pg-sp">
        <div class="container-fluid">
            
            <div *ngIf="isFirstLogin" class="auth-page d-flex align-items-center">
                <div class="container">
                    <div class="row justify-content-center">
                        <div class="col-md-6 col-lg-5 col-xl-4">
                            <div class="bg-primary bg-soft text-center py-3 mt-2">
                                <img src="assets/images/logo.png" class="img-fluid mb-2" height="120" width="150" alt="Logo">
                            </div>
                                    <div class="card">
                                        <div class="card-header bg-primary bg-soft text-center py-3">
                                            <h5 class="mb-0 text-dark">{{'changePassword' | translate}}</h5>
                                        </div>
                                        <div class="card-body">
                                            <form>
            
                                                <!-- New Password -->
                                                <div class="mb-3">
                                                    <label for="newPassword" class="form-label">
                                                        {{"newPasswordStatic" | translate}}<span class="mandatory">*</span>
                                                    </label>
                                                    <div class="input-group auth-pass-inputgroup">
                                                        <input type="{{passwordType1}}" class="form-control" id="newPassword"
                                                            placeholder="{{'enterNewPassword' | translate}}" appNoWhitespaces>
                                                        <app-password-hide-show #psh1 [showPassword]="true"
                                                            (onEyeClick)="togglePasswordType1()">
                                                        </app-password-hide-show>
                                                    </div>
                                                </div>
            
                                                <!-- Confirm Password -->
                                                <div class="mb-3">
                                                    <label for="confirmPassword" class="form-label">
                                                        {{"confirmPassword" | translate}}<span class="mandatory">*</span>
                                                    </label>
                                                    <div class="input-group auth-pass-inputgroup">
                                                        <input type="{{passwordType2}}" class="form-control" id="confirmPassword"
                                                            placeholder="{{'confirmPassword' | translate}}" appNoWhitespaces>
                                                        <app-password-hide-show #psh2 [showPassword]="true"
                                                            (onEyeClick)="togglePasswordType2()">
                                                        </app-password-hide-show>
                                                    </div>
                                                </div>
            
                                                <!-- Submit Button -->
                                                <div class="mt-3 d-grid">
                                                    <button class="btn btn-primary waves-effect waves-light" type="submit">
                                                        {{'save' | translate}}
                                                    </button>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            
                    </div>
                </div>
            </div>
            <div *ngIf="!isFirstLogin" class="full-width-page">
               <div class="row">
                    <div class="col-12">
                        <div class="d-sm-flex align-items-center justify-content-between navbar-header p-0">
    
                        </div>
                    </div>
                </div>
            
            
            <div class="container-fluid">
                <div class="col-xl-12 mt-4">
                    <div class="card border">

                         
                        <div class="card-body">
                            
                            <div class="table-section">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="card-body mt-2 p-0">
                                            <div class="card mb-0 mt-2">
                                                <div
                                                    class="card-header font-edit-13-child d-flex justify-content-between align-items-center">
                                                    {{'changePassword' | translate}}
                                                </div>
                                                <div class="card-body">
                                                    
                                                    <form>
                                                         <div class="row g-3 mb-3">
                                                            <div class="col-md-6">
                                                                <div class="d-flex align-items-center gap-2">
                                                                    <label for="oldPassword" class="text-nowrap">
                                                                        {{ 'oldPassword' | translate }}<span
                                                                            class="mandatory">*</span>
                                                                    </label>
                                                                    <div class="password-wrapper position-relative w-100">
                                                                        <div class="d-flex flex-row align-items-stretch">
                                                                        <input type="text" id="oldPassword"
                                                                            class="form-control"
                                                                            type="{{passwordType}}"
                                                                            placeholder="{{ 'oldPassword' | translate }}" appNoWhitespaces
                                                                            />
                                                                             <app-password-hide-show #psh class="password-eye align-items-stretch" [showPassword]="true" (onEyeClick)="togglePasswordType()"></app-password-hide-show>
                                                                       </div>
                                                                        <!-- <div class="text-danger">
                                                                            {{ 'requiredField' | translate }}
                                                                        </div> -->
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-6">
                                                                <div class="d-flex align-items-start gap-2">
                                                                    <label for="enterNewPassword"
                                                                        class="text-nowrap mt-2">
                                                                        {{ 'enterNewPassword' | translate }}<span
                                                                            class="mandatory">*</span>
                                                                    </label>
                                                                    <div class="password-wrapper position-relative w-100">
                                                                        
                                                                            <input id="enterNewPassword"
                                                                            class="form-control"
                                                                            type="{{passwordType1}}"
                                                                            maxlength="500"
                                                                            placeholder="{{ 'enterNewPassword' | translate }}" appNoWhitespaces
                                                                            rows="3"  />
                                                                            <app-password-hide-show #psh1 class="password-eye align-items-stretch" [showPassword]="true" (onEyeClick)="togglePasswordType1()"></app-password-hide-show>
                                                                       
                                                                        
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </div>
                                                         <div class="row g-3 mb-3">
                                                             <div class="col-md-6">
                                                                <div class="d-flex align-items-center gap-2">
                                                                    <label for="confirmPassword" class="text-nowrap">
                                                                        {{ 'confirmPassword' | translate }}<span
                                                                            class="mandatory">*</span>
                                                                    </label>
                                                                    <div class="password-wrapper position-relative w-100">
                                                                        
                                                                            <input id="confirmPassword"
                                                                            class="form-control"
                                                                            type="{{passwordType2}}"
                                                                            maxlength="500"
                                                                            placeholder="{{ 'confirmPassword' | translate }}" appNoWhitespaces
                                                                            rows="3"  />
                                                                            <app-password-hide-show #psh2 class="password-eye align-items-stretch" [showPassword]="true" (onEyeClick)="togglePasswordType2()"></app-password-hide-show>
                                                                       
                                                                        
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-6">
                                                                
                                                            </div>
                                                        </div>
                                                         <div class="row g-3 mb-3">
                                                            <div class="col-md-6 ms-auto text-end">
                                                                <button
                                                                    class="btn btn-primary waves-effect waves-light"
                                                                    
                                                                    >{{'save' | translate}}</button>
                                                               
                                                               
                                                            </div>
                                                        </div>

                                                      
                                                    </form>
                                                </div>
                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </div>
    </div>
</div>
