﻿*{box-sizing:border-box}
html,body{margin:0;min-height:100%;}

   @font-face {
     font-family: "Vazir";
     src: url("../font/Vazir.ttf") format("truetype");
}
    body {
         font-family: "Vazir";
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow-x: hidden;
        background: radial-gradient(circle at 82% 7%, rgba(244,145,91,.78) 0, rgba(244,145,91,.45) 18%, transparent 43%), radial-gradient(circle at 51% 17%, rgba(255,236,174,.65) 0, transparent 42%), linear-gradient(145deg,#eef2ec 0%,#f4edcf 43%,#f1d99b 73%,#bd6340 100%);
    }
.page{
  width:min(100%,560px);
 
  padding:100px 28px 70px;
  display:flex;
  justify-content:center;
}
    .login-card {
   width: 100%;
    padding: 38px 34px 32px;
    border: 2px solid rgba(230, 173, 57, .72);
    border-radius: 38px;
    background: rgba(255, 255, 255, .17);
    box-shadow: 0 8px 28px rgba(125, 91, 37, .08);
    backdrop-filter: blur(2px);
    position: relative;
    padding-bottom: 100px;
    margin: 10% 15%;
    }
.cap{
  width:132px;height:132px;margin:0 auto 34px;display:block;
}
    .field {
        position: relative;
        margin-bottom: 22px;    margin-left: 25px;
    margin-right: 25px;
    }
    body:has(.otp-container) .field{
        margin-left: 0px;
    margin-right: 0px;
    }
     body:has(.otp-container) .login-card{
         width: 90%;
    }
        /* Input */

        .field .login-txt {
            width: 100%;
            height: 62px;
            border: 1.8px solid rgb(185 185 185 / 62%);
            border-radius: 16px;
            outline: none;
            background: #fff;
            padding: 4px 18px 0 18px;
            font-size: 18px;
            color: #14233a;    min-width: 250px;
            transition: border-color .2s ease, box-shadow .2s ease;
        }


        /* Label داخل فیلد */

        .field label {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            padding: 0;
            background: transparent;
            color: #666666;
            font-size: 16px;
            font-weight: 400;
            pointer-events: none;
            z-index: 2;
            transition: top .2s ease, left .2s ease, transform .2s ease, font-size .2s ease, background-color .2s ease, padding .2s ease;
        }


        /* وقتی فیلد فعال است */

        .field:focus-within label,
        .field.has-value label {
            top: 0;
            left: 28px;
            transform: translateY(-50%);
            padding: 0 7px;
            background: linear-gradient( to bottom, transparent 0%, transparent 50%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.95) 100% );
            font-size: 16px;
        }


        /* Focus */

        .field input:focus {
            border-color: rgba(255,255,255,.95);
                box-shadow: 0 0 0 0px #00116e;
    border: 2px solid #00116e;
        }
        .field:focus-within label,
.field.has-value label {
    top: 0;
    left: 12px;

    transform: translateY(-50%);

    padding: 0 7px;

    font-size: 16px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(255,255,255,.95) 50%,
        rgba(255,255,255,.95) 100%
    );
}

    /* -------------------------
   Phone
------------------------- */

    .phone {
        display: flex;
        align-items: center;
        height: 62px;
        border: 1.8px solid rgb(185 185 185 / 62%);
        border-radius: 16px;
        
        background: #fff;
        overflow: visible;
        position: relative;
    }


        /* شماره تلفن */

        .phone .login-txt {
            height: 100%;
            border: 0;
            background: transparent;
            padding: 4px 18px 0 18px;
            min-width: 0;
            font-size: 18px;
            outline: none;
        }


    /* country */

    .country {
        height: 100%;
        min-width: 100px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 24px;
        color: #162c42;
        font-size: 18px;
    }

        .country .flag {
            font-size: 22px;
        }


    .login {
       display: block;
    margin: 0px auto;
    width: 235px;
    height: 64px;
    border: 0;
    border-radius: 40px;
    background: #397bcf;
    color: white;
    font-size: 20px;
    box-shadow: 0 7px 15px rgba(49, 107, 181, .25);
    cursor: pointer;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: -32px;
    text-decoration: none;
    line-height: 60px;
    }
    .login:hover {
        background: #00116e;
    }

@media(max-width:480px){
  .page{padding:85px 14px 50px}
 
  .cap{width:115px;height:115px;margin-bottom:30px}
    .login {
      
        width: 50%;
        height: 58px;
      
        bottom: -27px;
    }

}






 #verificationCode{
           display:none;
       }
       .otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    margin: 25px 0;
}

.otp-box {
    width: 52px;
    height: 58px;

       border: 2px solid rgb(255 255 255);
    border-radius: 14px;
    outline: none;
    background: rgb(255 255 255 / 0%);

    color: #14233a;

    text-align: center;

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Focus */

.otp-box:focus {
    border-color: #397bcf;

    background:#fff;

    box-shadow:
        0 0 0 3px rgba(57,123,207,.15);
}


/* وقتی مقدار وارد شده */

.otp-box:not(:placeholder-shown) {
    border-color: rgba(57,123,207,.75);
}


/* دکمه */

.verify-btn {
    display: block;

    width: 220px;
    height: 60px;

    margin: 35px auto 0;

    border: 0;
    border-radius: 35px;

    background:
        linear-gradient(
            180deg,
            #5c9ee7 0%,
            #397bcf 100%
        );

    color: white;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 15px rgba(49,107,181,.25);
}


/* موبایل */

@media (max-width:480px) {

    .otp-container {
        gap: 8px;
    }

    .otp-box {
        width: 45px;
        height: 52px;

        font-size: 22px;

        border-radius: 12px;
    }
}




 .box {     max-width: 380px;
    padding: 0px 24px;
    border-radius: 20px;
    text-align: center;
    direction: rtl; }
        .box .icon { font-size:48px; margin-bottom:8px; }
       .box h1 { font-size:20px; margin:0 0 12px; color:#0f1b3d; }
       .box p { color:#555; line-height:1.9; margin:0; font-size:15px; }
/******************sweetalert2@11 Start**************************/

         div:where(.swal2-container) h2:where(.swal2-title) {

    font-size: 19px !important;
}
        div:where(.swal2-container) div:where(.swal2-html-container) {

    direction: rtl;
    font-size: 14px !important;
}
        div:where(.swal2-container) button:where(.swal2-styled) {

    font-family: "Vazir";
}
        /******************sweetalert2@11 End**************************/