/* =========================================================
   SEPTI NAIL ATELIER
   KITTY PEEK OWNER ACCESS
   MOBILE + IPAD FIRST
========================================================= */

*{
    box-sizing:border-box;
}


:root{

    --pink:#ff2f92;

    --pink-deep:#c81767;

    --pink-dark:#8f1747;

    --pink-light:#ff72b4;

    --white:#ffffff;

    --ink:#211018;

    --muted:#997487;

    --line:#efd9e3;

}


/* =========================================================
   PAGE
========================================================= */

html,
body{

    margin:0;

    width:100%;

    min-height:100%;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

}


body{

    min-height:100svh;

    display:grid;

    place-items:center;

    position:relative;

    overflow:auto;

    padding:
        max(14px,env(safe-area-inset-top))
        10px
        max(14px,env(safe-area-inset-bottom));

    color:
        var(--ink);

    background:

        radial-gradient(
            circle at 10% 0%,
            rgba(255,47,146,.15),
            transparent 34%
        ),

        radial-gradient(
            circle at 100% 100%,
            rgba(255,92,167,.12),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #fffefe,
            #fff4f9
        );

}


/* =========================================================
   BACKGROUND LIGHT
========================================================= */

.ambient{

    position:fixed;

    pointer-events:none;

    border-radius:50%;

    filter:blur(4px);

}


.ambient-one{

    width:420px;

    height:420px;

    top:-250px;

    right:-220px;

    background:

        radial-gradient(
            circle,
            rgba(255,47,146,.17),
            transparent 70%
        );

}


.ambient-two{

    width:420px;

    height:420px;

    left:-260px;

    bottom:-260px;

    background:

        radial-gradient(
            circle,
            rgba(255,118,183,.13),
            transparent 70%
        );

}


/* =========================================================
   LOGIN STAGE
========================================================= */

.login-stage{
    width:min(760px, calc(100vw - 24px));
    position:relative;
    z-index:5;
    padding-top:0;
}



/* =========================================================
   KITTY
========================================================= */

.kitty-peek{
    position:absolute;
    left:50%;
    top:0;
    width:330px;
    transform:translate(-50%, calc(-100% + 43px));
    z-index:40;
    pointer-events:none;
    user-select:none;
    filter:
        drop-shadow(
            0 9px 12px
            rgba(108,31,67,.12)
        );
}


.kitty-image{
    display:block;
    width:100%;
    height:auto;
    transform:none;
    user-select:none;
    -webkit-user-drag:none;
}


/* =========================================================
   MAIN SQUARE PANEL
========================================================= */

.login-shell{

    position:relative;

    z-index:10;

    width:100%;

    aspect-ratio:
        1 / 1;

    min-height:0;

    display:grid;

    grid-template-columns:
        43% 57%;

    overflow:hidden;

    background:#fff;

    border:
        1px solid
        rgba(143,23,71,.11);

    border-radius:22px;

    box-shadow:

        0 45px 120px
        rgba(62,20,39,.17),

        0 12px 34px
        rgba(255,47,146,.06);

}


/*
 * Garis tipis di tempat Kitty memegang panel.
 */

.login-shell::before{

    content:"";

    position:absolute;

    z-index:25;

    top:0;

    left:50%;

    width:190px;

    height:5px;

    transform:
        translateX(-50%);

    border-radius:
        0 0 10px 10px;

    background:

        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.65),
            transparent
        );

    pointer-events:none;

}


/* =========================================================
   BRAND PANEL
========================================================= */

.brand-panel{

    position:relative;

    overflow:hidden;

    padding:26px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    color:#fff;

    background:

        linear-gradient(
            145deg,
            #7e153f 0%,
            #b9195c 25%,
            #e52279 58%,
            #ff4a98 100%
        );

}


.brand-panel::before{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    right:-150px;

    top:-140px;

    border-radius:50%;

    border:
        1px solid
        rgba(255,255,255,.11);

    box-shadow:

        0 0 0 25px
        rgba(255,255,255,.025),

        0 0 0 55px
        rgba(255,255,255,.018);

}


.brand-panel::after{

    content:"";

    position:absolute;

    width:240px;

    height:240px;

    left:-160px;

    bottom:-150px;

    border-radius:50%;

    background:

        radial-gradient(
            circle,
            rgba(255,255,255,.09),
            transparent 68%
        );

}


/* =========================================================
   BRAND TOP
========================================================= */

.brand-top{

    position:relative;

    z-index:2;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:10px;

}


.private-pill{

    height:27px;

    display:inline-flex;

    align-items:center;

    gap:7px;

    padding:
        0 9px;

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius:8px;

    color:
        rgba(255,255,255,.88);

    background:
        rgba(255,255,255,.08);

    font-size:7px;

    font-weight:800;

    letter-spacing:1.3px;

}


.private-pill span{

    width:6px;

    height:6px;

    border-radius:50%;

    background:#5cf0aa;

    box-shadow:

        0 0 0 4px
        rgba(92,240,170,.10);

}


.brand-code{

    color:
        rgba(255,255,255,.52);

    font-size:8px;

    font-weight:800;

    letter-spacing:2px;

}


/* =========================================================
   BRAND CENTER
========================================================= */

.brand-center{

    position:relative;

    z-index:2;

    text-align:center;

}


/* =========================================================
   BRAND LOGO
========================================================= */

.brand-logo{
    width:140px;
    height:140px;

    margin:
        0 auto
        18px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:6px;

    /* GARIS PINK */
    border:3px solid #ff72b4;

    border-radius:22px;

    background:
        rgba(255,255,255,.18);

    box-shadow:
        0 0 0 2px rgba(255,255,255,.20),
        0 12px 28px rgba(91,10,47,.18);

    overflow:hidden;
}

.brand-logo-image{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    border-radius:15px;

    user-select:none;
    -webkit-user-drag:none;
}


.brand-label{

    margin:
        0 0
        7px;

    color:
        rgba(255,255,255,.62);

    font-size:8px;

    font-weight:850;

    letter-spacing:2.3px;

}


.brand-center h1{

    margin:0;

    color:#fff;

    font-size:37px;

    line-height:.98;

    font-weight:850;

    letter-spacing:-1.4px;

}


.brand-center h1 span{

    display:block;

    margin-top:6px;

    font-weight:450;

    color:
        rgba(255,255,255,.83);

}


.brand-copy{

    max-width:235px;

    margin:
        15px auto 0;

    color:
        rgba(255,255,255,.66);

    font-size:10px;

    line-height:1.65;

}


/* =========================================================
   BRAND FOOTER
========================================================= */

.brand-footer{

    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    gap:10px;

}


.brand-line{

    width:35px;

    height:1px;

    background:
        rgba(255,255,255,.35);

}


.brand-footer-text{

    color:
        rgba(255,255,255,.44);

    font-size:7px;

    font-weight:800;

    letter-spacing:1.7px;

}


/* =========================================================
   PIN PANEL
========================================================= */

.pin-panel{

    padding:32px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    background:#fff;

}


/* =========================================================
   PIN HEADING
========================================================= */

.pin-heading{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

}


.pin-heading p{

    margin:
        0 0
        5px;

    color:var(--pink);

    font-size:8px;

    font-weight:900;

    letter-spacing:1.8px;

}


.pin-heading h2{

    margin:0;

    color:var(--ink);

    font-size:29px;

    line-height:1;

    letter-spacing:-.8px;

}


.secure-symbol{

    width:40px;

    height:40px;

    flex:
        0 0 40px;

    display:grid;

    place-items:center;

    border:
        1px solid
        var(--line);

    border-radius:10px;

    color:var(--pink);

    background:#fff6fa;

    font-size:16px;

}


.pin-description{
    margin:
        8px 0 0;

    color:#5f5660;

    font-size:10px;
}


/* =========================================================
   ERROR
========================================================= */

.login-error{

    min-height:40px;

    margin-top:13px;

    display:flex;

    align-items:center;

    gap:8px;

    padding:
        7px 9px;

    border:
        1px solid
        #f5c4d4;

    border-radius:10px;

    background:#fff2f6;

    color:#a72c4a;

    font-size:10px;

    font-weight:700;

}


.login-error-icon{

    width:24px;

    height:24px;

    flex:
        0 0 24px;

    display:grid;

    place-items:center;

    border-radius:7px;

    background:#ffdce7;

    font-weight:900;

}


/* =========================================================
   PIN INDICATOR
========================================================= */

.pin-indicator{

    margin-top:21px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:
        12px 13px;

    border:
        1px solid
        var(--line);

    border-radius:12px;

    background:#fffafd;

}


.pin-dots{

    display:flex;

    gap:8px;

}


.pin-dots span{

    width:12px;

    height:12px;

    border:
        1.5px solid
        #eeb1cb;

    border-radius:4px;

    background:#fff;

    transition:.17s ease;

}


.pin-dots span.active{

    border-color:
        var(--pink);

    box-shadow:

        0 0 0 3px
        rgba(255,47,146,.07);

}


.pin-dots span.filled{

    border-color:
        var(--pink);

    background:
        var(--pink);

}


.pin-text{

    min-width:40px;

    text-align:right;

    color:#a57e90;

    font-size:8px;

    font-weight:850;

    letter-spacing:.6px;

}


.pin-text.ready{

    color:#279b61;

}


/* =========================================================
   KEYPAD
========================================================= */

.pin-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 7px;

    margin-top: 11px;

    /*
     * Mencegah browser menganggap
     * tap cepat sebagai double-tap zoom.
     */
    touch-action: manipulation;

    -webkit-user-select: none;
    user-select: none;
}


.pin-key{

    position:relative;

    overflow:hidden;

    height:52px;

    border:
        1px solid
        var(--line);

    border-radius:11px;

    background:#fff;

    color:var(--ink);

    font-size:17px;

    font-weight:850;

    cursor:pointer;

    box-shadow:

        0 5px 12px
        rgba(75,30,51,.028);

    transition:
        transform .12s ease,
        border-color .12s ease,
        background .12s ease,
        box-shadow .12s ease;

    -webkit-tap-highlight-color:
        transparent;
        
        /* =========================================
       FAST PIN TAP FIX
    ========================================= */

    touch-action: manipulation;

    -webkit-user-select: none;

    user-select: none;

}


.pin-key::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:0;

    width:0;

    height:3px;

    transform:
        translateX(-50%);

    background:
        var(--pink);

    border-radius:
        3px 3px 0 0;

    transition:
        width .14s ease;

}


.pin-key:active,
.pin-key.touching{

    transform:
        translateY(2px);

    border-color:
        #ff93c0;

    background:
        #fff2f7;

    box-shadow:none;

}


.pin-key:active::after,
.pin-key.touching::after{

    width:42%;

}


.pin-key-action{

    color:var(--pink);

    font-size:13px;

}


/* =========================================================
   UNLOCK
========================================================= */

.unlock-btn{

    width:100%;

    min-height:57px;

    margin-top:9px;

    padding:
        0 14px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    border:0;

    border-radius:11px;

    color:#fff;

    background:

        linear-gradient(
            105deg,
            #8f1747,
            #d51d6c,
            #ff388c
        );

    cursor:pointer;

    box-shadow:

        0 12px 26px
        rgba(213,29,108,.19);

    transition:.14s ease;

    -webkit-tap-highlight-color:
        transparent;

}


.unlock-btn:disabled{

    opacity:.28;

    box-shadow:none;

}


.unlock-btn:not(:disabled):active{

    transform:
        scale(.985);

}


.unlock-info{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap:1px;

}


.unlock-info small{

    color:
        rgba(255,255,255,.56);

    font-size:6px;

    font-weight:800;

    letter-spacing:1.4px;

}


.unlock-info strong{

    font-size:13px;

    font-weight:850;

}


.unlock-arrow{

    width:33px;

    height:33px;

    display:grid;

    place-items:center;

    border:
        1px solid
        rgba(255,255,255,.21);

    border-radius:9px;

    background:
        rgba(255,255,255,.09);

    font-size:16px;

}


.unlock-btn.loading
.unlock-arrow{

    font-size:0;

    border-radius:50%;

    border:
        2px solid
        rgba(255,255,255,.30);

    border-top-color:#fff;

    animation:
        verifySpin
        .7s linear
        infinite;

}


@keyframes verifySpin{

    to{

        transform:
            rotate(360deg);

    }

}


/* =========================================================
   SECURITY FOOTER
========================================================= */

.security-footer{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:13px;

    padding-top:12px;

    border-top:
        1px solid
        var(--line);

}


.security-footer div{

    display:flex;

    align-items:center;

    gap:5px;

    color:#a27b8e;

    font-size:7px;

}


.online-dot{

    width:5px;

    height:5px;

    border-radius:50%;

    background:#27be76;

}


.security-footer i{

    width:3px;

    height:3px;

    border-radius:50%;

    background:#d4b2c1;

}


/* =========================================================
   IPAD
========================================================= */

@media
(max-width:900px)
and
(min-width:601px){


    .login-stage{
        width:min(680px, calc(100vw - 32px));
        padding-top:0;
    }

    .kitty-peek{
        left:50%;
        top:0;
        width:300px;
        transform:translate(-50%, calc(-100% + 41px));
    }

    .kitty-image{
        transform:none;
    }



    .brand-panel{

        padding:23px;

    }


    .pin-panel{

        padding:26px;

    }


    .brand-center h1{

        font-size:32px;

    }


    .pin-heading h2{

        font-size:25px;

    }


    .pin-key{

        height:48px;

        border-radius:10px;

    }
    .brand-logo{
    width:120px;
    height:120px;

    padding:4px;

    border-radius:19px;

    margin-bottom:16px;
}

.brand-logo-image{
    border-radius:15px;
}

}


/* =========================================================
   MOBILE
========================================================= */

@media
(max-width:600px){


    body{

        padding:
            max(7px,env(safe-area-inset-top))
            7px
            max(7px,env(safe-area-inset-bottom));

    }


    .login-stage{
        width:min(96vw,470px);
        padding-top:0;
    }

    .kitty-peek{
        left:50%;
        top:0;
        width:245px;
        transform:translate(-50%, calc(-100% + 36px));
    }

    .kitty-image{
        transform:none;
    }


    .login-shell{

        aspect-ratio:
            1 / 1;

        grid-template-columns:
            38% 62%;

        border-radius:18px;

    }


    .login-shell::before{

        width:115px;

        height:4px;

    }


    .brand-panel{

        padding:
            14px 10px;

    }


    .brand-top{

        align-items:flex-start;

    }


    .private-pill{

        min-width:0;

        height:22px;

        padding:
            0 6px;

        gap:4px;

        border-radius:6px;

        font-size:5px;

        letter-spacing:.7px;

    }


    .brand-code{

        display:none;

    }


    .brand-logo{
    width:88px;
    height:88px;

    margin:
        0 auto
        10px;

    padding:3px;

    border:2px solid #ff72b4;
    border-radius:14px;

    background:
        rgba(255,255,255,.18);

    box-shadow:
        0 0 0 1px rgba(255,255,255,.18),
        0 8px 18px rgba(91,10,47,.16);

    overflow:hidden;
}

.brand-logo-image{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:10px;
}


    .brand-label{

        font-size:5px;

        letter-spacing:1.2px;

    }


    .brand-center h1{

        font-size:21px;

        letter-spacing:-.6px;

    }


    .brand-center h1 span{

        margin-top:3px;

    }


    .brand-copy{

        max-width:120px;

        margin-top:8px;

        font-size:6px;

        line-height:1.5;

    }


    .brand-footer{

        gap:5px;

    }


    .brand-line{

        width:15px;

    }


    .brand-footer-text{

        font-size:4px;

        letter-spacing:.7px;

    }


    .pin-panel{

        padding:
            14px 11px;

    }


    .pin-heading{

        gap:7px;

    }


    .pin-heading p{

        margin-bottom:2px;

        font-size:5px;

        letter-spacing:.8px;

    }


    .pin-heading h2{

        font-size:19px;

    }


    .secure-symbol{

        width:28px;

        height:28px;

        flex-basis:28px;

        border-radius:7px;

        font-size:11px;

    }


    .pin-description{

        margin-top:4px;

        font-size:6px;

    }


    .login-error{

        min-height:30px;

        margin-top:6px;

        padding:
            4px 5px;

        border-radius:7px;

        font-size:6px;

    }


    .login-error-icon{

        width:18px;

        height:18px;

        flex-basis:18px;

        border-radius:5px;

    }


    .pin-indicator{

        margin-top:9px;

        padding:
            7px 7px;

        border-radius:8px;

    }


    .pin-dots{

        gap:5px;

    }


    .pin-dots span{

        width:8px;

        height:8px;

        border-radius:3px;

    }


    .pin-text{

        min-width:30px;

        font-size:5px;

    }


    .pin-grid{

        gap:4px;

        margin-top:5px;

    }


    .pin-key{

        height:33px;

        border-radius:8px;

        font-size:12px;

    }


    .pin-key-action{

        font-size:9px;

    }


    .unlock-btn{

        min-height:39px;

        margin-top:5px;

        padding:
            0 8px;

        border-radius:8px;

    }


    .unlock-info small{

        font-size:4px;

        letter-spacing:.7px;

    }


    .unlock-info strong{

        font-size:8px;

    }


    .unlock-arrow{

        width:23px;

        height:23px;

        border-radius:7px;

        font-size:11px;

    }


    .security-footer{

        gap:4px;

        margin-top:6px;

        padding-top:6px;

    }


    .security-footer div{

        gap:3px;

        font-size:4px;

    }


    .online-dot{

        width:4px;

        height:4px;

    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media
(max-width:370px){


    .login-stage{
        padding-top:0;
    }

    .kitty-peek{
        width:220px;
        transform:translate(-50%, calc(-100% + 22px));
    }

}
