/* ==========================================
   AKAY AUTHENTICATOR V2
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --bg:#0f172a;

    --sidebar:#111827;

    --card:#1e293b;

    --card-hover:#263549;

    --border:#334155;

    --primary:#3b82f6;

    --primary-hover:#2563eb;

    --success:#10b981;

    --warning:#f59e0b;

    --danger:#ef4444;

    --text:#ffffff;

    --text2:#94a3b8;

    --shadow:0 15px 40px rgba(0,0,0,.35);

    --radius:16px;

    --transition:.25s;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:

    "Segoe UI",

    Arial,

    sans-serif;

    overflow:hidden;

}

/* ===========================
LAYOUT
=========================== */

.layout{

    display:flex;

    width:100%;

    height:100vh;

}

/* ===========================
SIDEBAR
=========================== */

.sidebar{

    width:320px;

    background:var(--sidebar);

    border-right:1px solid var(--border);

    display:flex;

    flex-direction:column;

    padding:22px;

}

/* ===========================
LOGO
=========================== */

.logo{

    text-align:center;

    margin-bottom:25px;

}

.logo-image{

    width:70px;

    height:70px;

    object-fit:contain;

    margin-bottom:12px;

}

.logo h2{

    font-size:22px;

    font-weight:700;

}

.logo p{

    margin-top:6px;

    color:var(--text2);

    font-size:13px;

}

/* ===========================
SIDEBAR ACTION
=========================== */

.sidebar-action{

    display:flex;

    flex-direction:column;

    gap:12px;

    margin-bottom:20px;

}

/* ===========================
BUTTON
=========================== */

button{

    border:none;

    cursor:pointer;

    transition:var(--transition);

    font-size:15px;

}

.primary{

    background:var(--primary);

    color:white;

    padding:14px;

    border-radius:12px;

}

.primary:hover{

    background:var(--primary-hover);

}

.secondary{

    background:#1f2937;

    color:white;

    padding:14px;

    border-radius:12px;

    border:1px solid var(--border);

}

.secondary:hover{

    background:#2a3749;

}

.success{

    background:var(--success);

    color:white;

    padding:14px;

    border-radius:12px;

}

.success:hover{

    opacity:.92;

}

.danger{

    background:var(--danger);

    color:white;

    padding:14px;

    border-radius:12px;

}

.danger:hover{

    opacity:.9;

}

.icon-btn{

    width:42px;

    height:42px;

    border-radius:12px;

    background:#1f2937;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid var(--border);

}

.icon-btn:hover{

    background:#2b3a4d;

}

/* ===========================
SEARCH
=========================== */

.search{

    position:relative;

    margin-bottom:20px;

}

.search i{

    position:absolute;

    left:14px;

    top:50%;

    transform:translateY(-50%);

    color:var(--text2);

}

.search input{

    width:100%;

    padding:12px 14px 12px 42px;

    border-radius:12px;

    border:1px solid var(--border);

    background:#0b1220;

    color:white;

    outline:none;

}

.search input:focus{

    border-color:var(--primary);

}

/* ===========================
ACCOUNT LIST
=========================== */

.account-list{

    flex:1;

    overflow:auto;

    padding-right:4px;

}

.account{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:14px;

    padding:15px;

    margin-bottom:12px;

    cursor:pointer;

    transition:var(--transition);

}

.account:hover{

    background:var(--card-hover);

    transform:translateY(-2px);

}

.account.active{

    border-color:var(--primary);

    box-shadow:0 0 0 2px rgba(59,130,246,.25);

}

.account strong{

    display:block;

    margin-bottom:5px;

    font-size:15px;

}

.account small{

    color:var(--text2);

}

/* ===========================
SIDEBAR FOOTER
=========================== */

.sidebar-footer{

    display:flex;

    justify-content:space-between;

    gap:10px;

    margin-top:20px;

}

.sidebar-footer button{

    flex:1;

    height:46px;

    border-radius:12px;

    background:#1f2937;

    color:white;

    border:1px solid var(--border);

}

.sidebar-footer button:hover{

    background:#2b3a4d;

}

/* ===========================
CONTENT
=========================== */

.content{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

}
/* ===========================
OTP CARD
=========================== */

.otp-card{

    width:500px;

    background:var(--card);

    border-radius:20px;

    padding:30px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

}

/* ===========================
ISSUER HEADER
=========================== */

.issuer-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.issuer-left{

    display:flex;

    align-items:center;

    gap:15px;

}

.issuer-logo{

    width:56px;

    height:56px;

    border-radius:14px;

    background:#fff;

    object-fit:contain;

    padding:6px;

}

#issuerName{

    font-size:22px;

    margin-bottom:4px;

}

#issuerEmail{

    color:var(--text2);

    font-size:14px;

}

/* ===========================
OTP
=========================== */

.otp-wrapper{

    margin:30px 0;

    text-align:center;

}

.otp{

    font-size:60px;

    font-weight:700;

    letter-spacing:8px;

    user-select:all;

}

/* ===========================
PROGRESS
=========================== */

.progress{

    width:100%;

    height:10px;

    border-radius:30px;

    overflow:hidden;

    background:#0b1220;

    margin-top:20px;

}

#progress{

    width:100%;

    height:100%;

    background:linear-gradient(
        90deg,
        #06b6d4,
        #2563eb
    );

    transition:width 1s linear;

}

/* ===========================
COUNTDOWN
=========================== */

.countdown{

    margin-top:14px;

    text-align:center;

    color:var(--text2);

    font-size:15px;

}

.countdown strong{

    color:white;

    font-size:18px;

}

/* ===========================
SECRET CARD
=========================== */

.secret-card{

    margin-top:30px;

}

.secret-card label{

    display:block;

    margin-bottom:10px;

    color:var(--text2);

}

.secret-card textarea{

    width:100%;

    height:120px;

    resize:none;

    background:#0b1220;

    color:white;

    border:1px solid var(--border);

    border-radius:14px;

    padding:15px;

    outline:none;

    font-size:14px;

}

.secret-card textarea:focus{

    border-color:var(--primary);

}

/* ===========================
OTP BUTTONS
=========================== */

.otp-buttons{

    display:flex;

    gap:12px;

    margin-top:25px;

}

.otp-buttons button{

    flex:1;

}

/* ===========================
ACCOUNT ACTION
=========================== */

.account-action{

    display:flex;

    justify-content:space-between;

    gap:12px;

    margin-top:20px;

}

.account-action .icon-btn{

    flex:1;

    width:auto;

    height:48px;

    gap:8px;

    font-size:14px;

}

.account-action .danger{

    flex:1;

}

/* ===========================
ACCOUNT INFO
=========================== */

.account-info{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:15px;

    margin-top:30px;

    padding-top:25px;

    border-top:1px solid var(--border);

}

.account-info div{

    text-align:center;

}

.account-info small{

    display:block;

    color:var(--text2);

    margin-bottom:6px;

}

.account-info strong{

    font-size:15px;

}
/* ===========================
MODAL
=========================== */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    backdrop-filter:blur(4px);

}

.modal.show{

    display:flex;

    animation:fadeIn .25s ease;

}

.modal-content{

    width:520px;

    max-width:92%;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.modal-content.scanner{

    width:620px;

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 24px;

    border-bottom:1px solid var(--border);

}

.modal-header h2{

    font-size:20px;

}

.modal-body{

    padding:24px;

}

.modal-body label{

    display:block;

    margin:15px 0 8px;

    color:var(--text2);

    font-size:14px;

}

.modal-body input,

.modal-body textarea,

.modal-body select{

    width:100%;

    background:#0b1220;

    color:white;

    border:1px solid var(--border);

    border-radius:12px;

    padding:12px 14px;

    outline:none;

}

.modal-body textarea{

    min-height:120px;

    resize:vertical;

}

.modal-body input:focus,

.modal-body textarea:focus,

.modal-body select:focus{

    border-color:var(--primary);

}

.modal-tools{

    display:flex;

    gap:12px;

    margin-top:18px;

}

.modal-tools button{

    flex:1;

}

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:12px;

    padding:20px 24px;

    border-top:1px solid var(--border);

}

.modal-footer button{

    min-width:120px;

}

/* ===========================
QR SCANNER
=========================== */

#reader{

    width:100%;

    min-height:380px;

    border-radius:12px;

    overflow:hidden;

}

/* ===========================
TOAST
=========================== */

#toast{

    position:fixed;

    bottom:30px;

    right:30px;

    background:var(--success);

    color:#fff;

    padding:14px 22px;

    border-radius:12px;

    box-shadow:var(--shadow);

    opacity:0;

    transform:translateY(20px);

    pointer-events:none;

    transition:.3s;

    z-index:99999;

}

#toast.show{

    opacity:1;

    transform:translateY(0);

}

/* ===========================
SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:8px;

    height:8px;

}

::-webkit-scrollbar-thumb{

    background:#475569;

    border-radius:999px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

/* ===========================
ANIMATION
=========================== */

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

.account{

    animation:fade .25s ease;

}

/* ===========================
RESPONSIVE
=========================== */

@media (max-width:1200px){

    .otp-card{

        width:100%;

        max-width:650px;

    }

}

@media (max-width:992px){

    .layout{

        flex-direction:column;

    }

    .sidebar{

        width:100%;

        height:320px;

    }

    .content{

        padding:25px;

        overflow:auto;

    }

}

@media (max-width:768px){

    .issuer-header{

        flex-direction:column;

        gap:18px;

        align-items:flex-start;

    }

    .otp{

        font-size:46px;

        letter-spacing:5px;

    }

    .otp-buttons{

        flex-direction:column;

    }

    .account-action{

        flex-direction:column;

    }

    .account-info{

        grid-template-columns:repeat(2,1fr);

    }

    .modal-tools{

        flex-direction:column;

    }

    .modal-footer{

        flex-direction:column;

    }

    .modal-footer button{

        width:100%;

    }

}

@media (max-width:480px){

    .sidebar{

        padding:16px;

    }

    .otp-card{

        padding:20px;

    }

    .issuer-logo{

        width:48px;

        height:48px;

    }

    .otp{

        font-size:34px;

        letter-spacing:3px;

    }

    .account-info{

        grid-template-columns:1fr;

    }

    #toast{

        left:15px;

        right:15px;

        bottom:15px;

    }

}