/* =========================
   BASE PAGE
========================= */
body{
    margin:0;
    background:#f5f5f7;
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Helvetica,Arial,sans-serif;
    min-height:100vh;
    color:#1d1d1f;
}

/* =========================
   CENTER CARD
========================= */
.container{
    width:420px;
    background:#fff;
    border-radius:28px;
    padding:40px 36px 36px;
    margin:60px auto 40px;
    text-align:center;
    box-shadow:
        0 4px 20px rgba(0,0,0,.06),
        0 20px 40px rgba(0,0,0,.08);
}

/* =========================
   LOGO & TITLE
========================= */
.ring-img{
    width:170px;
    margin:0 auto 8px;
    display:block;
}

h1{
    font-size:22px;
    font-weight:600;
    margin:12px 0 22px;
}

/* =========================
   GROUPED INPUT (APPLE)
========================= */
input{
    width:100%;
    height:46px;
    padding:0 14px;
    font-size:15px;
    box-sizing:border-box;
    border:1px solid #d2d2d7;
    outline:none;
    margin:0;
}

/* email */
input[type="text"]{
    border-top-left-radius:12px;
    border-top-right-radius:12px;
    border-bottom:none;
}

/* password */
input[type="password"]{
    border-bottom-left-radius:12px;
    border-bottom-right-radius:12px;
}

/* focus email (kuning) */
input[type="text"]:focus{
    background:#fff8e1;
    border:1px solid #f5c400;
    border-bottom:none;
}

/* focus password */
input[type="password"]:focus{
    border-color:#0071e3;
}

/* =========================
   BUTTONS
========================= */
.btn{
    width:100%;
    height:44px;
    border-radius:12px;
    border:none;
    font-size:15px;
    cursor:pointer;
}

/* continue */
.btn-continue{
    margin:18px 0 14px;
    background:#9ec9f5;
    color:#fff;
    transition:background .25s;
}

.btn-continue.active{
    background:#0071e3;
}

/* iphone */
.btn-iphone{
    background:#000;
    color:#fff;
    margin-top:8px;
}

/* =========================
   LINK & DESC
========================= */
.link{
    display:block;
    text-align:left;
    font-size:13px;
    color:#0071e3;
    margin-bottom:14px;
    text-decoration:none;
}

.desc{
    font-size:11px;
    color:#6e6e73;
    line-height:1.45;
    margin:14px 0 22px;
    text-align:center;
}

/* privacy icon */
.desc::before{
    content:"";
    display:block;
    width:120px;
    height:50px;
    margin:0 auto 10px;
    background:url("https://cdn.appleosophy.com/2019/01/apple-privacy-icon-wide-2-1024x403.png") center/contain no-repeat;
}

/* =========================
   FOOTER (SCROLLABLE)
========================= */
.apple-footer{
    width:100%;
    background:#f5f5f7;
    border-top:1px solid #e5e5ea;
    padding:14px 28px;
    font-size:12px;
    color:#6e6e73;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-sizing:border-box;
}

/* links */
.apple-footer a{
    color:#6e6e73;
    text-decoration:none;
    margin-right:18px;
}

.apple-footer a:hover{
    text-decoration:underline;
}

/* responsive */
@media(max-width:600px){
    .apple-footer{
        flex-direction:column;
        gap:6px;
        text-align:center;
    }
}
/* =========================
   BUTTON ROW (APPLE STYLE)
========================= */

/* FORM BUTTON CONTAINER */
form{
    margin-bottom:16px;
}

/* CONTINUE & IPHONE SEJAJAR */
.btn-continue,
.btn-iphone{
    width:48%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:44px;
    border-radius:12px;
    font-size:14px;
}

/* SPASI ANTAR BUTTON */
.btn-continue{
    margin-right:2%;
}

/* IPHONE BUTTON ICON ALIGN */
.btn-iphone{
    gap:6px;
}
/* =========================
   REQUIRE TEXT POSITION
========================= */

/* BARIS TOMBOL */
.btn-continue,
.btn-iphone{
    width:48%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    vertical-align:middle; /* 🔑 kunci sejajar */
}

.footer{
    font-size:11px;
    color:#6e6e73;
    margin-top:6px;

    /* POSISI RELATIF KE TOMBOL IPHONE */
    width:48%;
    float:right;           /* 🔑 ini kuncinya */
    text-align:center;
    clear:both;
}

/* =========================
   ICLOUD LOGO (FIXED & AMAN)
========================= */
.icloud-logo{
    position:fixed;
    top:0.1px;
    left:20px;
    z-index:9999;          /* 🔑 WAJIB */
    pointer-events:auto;
}

.icloud-logo img{
    width:70px;            /* jelas terlihat */
    height:auto;
    display:block;
}

/* =========================
   RESPONSIVE FIX
========================= */

/* TABLET */
@media (max-width: 1024px){
    .container{
        width:90%;
        max-width:420px;
    }
}

/* MOBILE */
@media (max-width: 480px){

    /* CARD */
    .container{
        width:92%;
        padding:28px 20px 24px;
        margin:40px auto 30px;
        border-radius:22px;
    }

    /* TITLE */
    h1{
        font-size:18px;
        margin:10px 0 18px;
    }

    /* INPUT */
    input{
        height:44px;
        font-size:14px;
    }

    /* BUTTON STACK */
    .btn-continue,
    .btn-iphone{
        width:100%;
        margin:0 0 10px;
    }

    /* REQUIRE TEXT FULL */
    .footer{
        width:100%;
        float:none;
        margin-top:4px;
        text-align:center;
    }

    /* ICLOUD LOGO */
    .icloud-logo{
        top:10px;
        left:12px;
    }

    .icloud-logo img{
        width:56px;
    }

    /* PRIVACY ICON */
    .desc::before{
        width:96px;
        height:40px;
    }

    /* FOOTER BAR */
    .apple-footer{
        padding:10px 14px;
        font-size:11px;
    }

    .apple-footer a{
        margin-right:10px;
    }
}
