
<div class="backImg">

<div class="c-wrapper" style="margin:0">

    <!-- <nav class="navbar navbar-expand-lg" style="padding: 16.5px;">
        <div class="container">
          <p class="navbar-brand d-flex align-items-center" href="#">
            <img src="assets/img/emblem2.jpg" alt="" class="img-fluid" style="height: 40px;">
            Thrickodithanam SCB
          </p>
      
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
            aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
      
          <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
            <ul class="navbar-nav">
              <li class="nav-item">
                <p class="nav-link home-link" >Home</p>
              </li>
              <li class="nav-item">
                <p class="nav-link contact-link" >Contact Us</p>
              </li>
            </ul>
          </div>
          
        </div>
      </nav>
    
      <nav class="navbar navbar-dark-responsive" style="background-image: url('assets/img/panel_background.jpg');padding: 56px;"> 
      </nav> -->
    <mat-progress-bar mode="indeterminate" *ngIf="loading" color="warn"></mat-progress-bar>


    <div *ngIf="!verifiedOtp" class="container">

        <div class="container" style="margin-top:20px;">
            <div class="row">
                <!-- <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4"></div> -->
                <div class="col-12 col-sm-12 col-md-6 col-lg-5 col-xl-5">
                    <mat-card card="card-style" class="registerCard">
                        <mat-card-title>
                            <div class="row">
                                <!-- <img mat-card-image src="assets/accurate/images/salesapp.png" alt="logo"> -->

                            </div>
                        </mat-card-title>
                        <mat-card-subtitle style="text-align: left;">
                            <span class="loginSpan">{{ 'register' | translate }} </span>
                        </mat-card-subtitle>
                        <mat-card-content>
                            <div class="row">


                                <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10" style="margin-top: 20px;">
                                    <mat-form-field style="width: 100%">
                                        <input matInput [(ngModel)]="this.userDetails.email" type="text" placeholder="{{ 'email' | translate }}">
                                    </mat-form-field>
                                </div>

                                <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10" style="text-align: center;margin-top: 20px;">
                                    <button mat-raised-button (click)="sendOTP(otpValidation)"
                                    class="verifyOtpButton">{{ 'generateOtp' | translate }}</button>
                                </div>
                            </div>
                        </mat-card-content>
                    </mat-card>
                </div>
                <!-- <div class="col-sm-4"></div> -->
            </div>
        </div>
    </div>


    <ng-template #otpValidation>

        <div class="row">

            <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                <mat-form-field style="width: 100%" appearance="outline">
                    <mat-label>{{ 'enterOtp' | translate }}</mat-label>
                    <input matInput [(ngModel)]="userDetails.otp" type="text" placeholder="{{ 'enterOtp' | translate }}" style="width:100%;border-bottom: 0px;">
                    <mat-icon
                        matTooltip="{{ 'Please check both inbox and spam folder for OTP' | translate }}"
                        matTooltipPosition="above"
                        class="tooltip-icon"
                        style="position: absolute; top: 37%; right: 0; transform: translateY(-50%);">
                        info_outline
                    </mat-icon>
                </mat-form-field>
            </div>

            <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10" style="text-align: center;">
                <button mat-raised-button (click)="validation()" class="submitButton">{{ 'submit' |
                    translate }}</button>
            </div>
        </div>

    </ng-template>


    <div *ngIf="verifiedOtp">

        <div class="container">

            <div class="container" style="margin-top:20px;">
                <div class="row">
                    <!-- <div class="col-sm-4 col-md-4 col-lg-4 col-xl-4"></div> -->
                    <div class="col-12 col-sm-12 col-md-6 col-lg-7 col-xl-7">
                        <mat-card card="card-style">
                            <mat-card-title>
                                <div class="row">
                                    <!-- <img mat-card-image src="assets/accurate/images/salesapp.png" alt="logo"> -->

                                </div>
                            </mat-card-title>
                            <mat-card-subtitle style="text-align: left;">
                                <span class="loginSpan">{{ 'register' | translate }} </span>
                            </mat-card-subtitle>
                            <mat-card-content>
                                <div class="row" style="margin-top: 20px;">

                                    <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                                        <mat-form-field style="width: 100%">
                                            <input matInput [(ngModel)]="this.userDetails.userName" type="text" placeholder="{{ 'name' | translate }}">
                                        </mat-form-field>
                                    </div>

                                    <!-- <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                                        <mat-form-field style="width: 100%">
                                            <input matInput type="text" placeholder="{{ 'email' | translate }}">
                                        </mat-form-field>
                                    </div> -->

                                    <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                                        <mat-form-field style="width: 100%">
                                            <input matInput [(ngModel)]="this.userDetails.mobileNumber" type="text" placeholder="{{ 'mobileNumber' | translate }}">
                                        </mat-form-field>
                                    </div>

                                    <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                                        <mat-form-field style="width: 100%">
                                            <input matInput [(ngModel)]="this.userDetails.pass" type="password"  placeholder="{{ 'password' | translate }}">
                                        </mat-form-field>
                                    </div>

                                    <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10">
                                        <mat-form-field style="width: 100%">
                                            <input matInput [(ngModel)]="this.userDetails.confPass" type="password"  placeholder="{{ 'confPass' | translate }}">
                                        </mat-form-field>
                                    </div>

                                    <div class="col-10 col-sm-10 col-md-12 col-lg-10 col-xl-10"
                                        style="text-align: center;">
                                        <button mat-raised-button (click)="saveData()" class="saveButton">{{ 'save' | translate}}</button>
                                    </div>
                                </div>
                            </mat-card-content>
                        </mat-card>
                    </div>
                    <!-- <div class="col-sm-4"></div> -->
                </div>
            </div>
        </div>
    </div>

    <!-- <div class="footer" class="fixed-bottom">
        <footer id="footer" style="background-color: #48746e; padding: 70px 0; color: #ffffff; font-size: 16px; bottom: 0;" class="py-3">
          <div class="container">
            <div class="row">
              <div class="col-md-12 text-center">
                <p class="mb-0">&copy; <span style="font-weight: bolder;font-family: sans-serif;">Thrickodithanamscb 2023. </span>All Rights Reserved</p>
                <p class="mb-0">Designed by <a href="https://www.simssoftware.in/" style="color: #ffffff;">SiMS</a></p>
              </div>
            </div>
          </div>
        </footer>
        </div> -->

    </div>