/**
 * Authenticator Token
 * Version: 1.3.0
 * Copyright (c) 2020. Mateusz Szymański Teamwant
 * https://teamwant.pl
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Teamwant <kontakt@teamwant.pl>
 * @copyright Copyright 2016-2025 © Teamwant Mateusz Szymański All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *
 * @category  Teamwant
 */ 

/*
 * Authenticator Token module for Prestashop
 * Version: 1.3.0
 * Copyright (c) 2020. Mateusz Szymański Teamwant
 * https://teamwant.pl
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @author    Teamwant <kontakt@teamwant.pl>
 * @copyright Copyright 2016-2026 © Teamwant Mateusz Szymański All right reserved
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * @category  Teamwant
 * @package   Teamwant
 */

/* Legacy styles */
.logoswitcher {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    top: -45px;
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.logoswitcher ul {
    list-style: none;
    position: relative;
    left: 0;
    right: 0;
}
.logoswitcher li {
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    width: 50px;
}
.logoswitcher li img {
    width: 50px;
}
.logoswitcher li:nth-child(4) {
    animation: xfade 16s 0s infinite;
}
.logoswitcher li:nth-child(3) {
    animation: xfade 16s 4s infinite;
}
.logoswitcher li:nth-child(2) {
    animation: xfade 16s 8s infinite;
}
.logoswitcher li:nth-child(1) {
    animation: xfade 16s 12s infinite;
}

@keyframes xfade {
    17% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    92% {
        opacity: 0;
    }
}

/* New Design Styles */
.teamwanttoken_container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 32px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
}

.teamwanttoken_header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.teamwanttoken_icon {
    margin-bottom: 20px;
}

.teamwanttoken_title {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.teamwanttoken_subtitle {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.teamwanttoken_label {
    display: block;
    font-size: 1rem;
    color: #666666;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    text-align: center;
    font-weight: 400;
}

.teamwanttoken_qr_container {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 0px;
    max-width: 65%;
}

.teamwanttoken_qr_container img {
    max-width: 100%;
    height: auto;
}

.teamwanttoken_code_wrapper {
    margin-bottom: 8px;
}

.teamwanttoken_code_inputs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    margin-bottom: 24px;
}

.teamwanttoken_code_digit {
    width: 45px !important;
    height: 52px !important;
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #1A1A1A;
    background: #FAFAFA;
    border: 1.5px solid #E8E8E8;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    caret-color: transparent;
    user-select: none;
}

.teamwanttoken_code_digit:focus {
    border-color: #4A6FFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.08);
    transform: translateY(-1px);
}

.teamwanttoken_code_digit.filled {
    border-color: #D0D7FF;
    background: #FFFFFF;
}

.teamwanttoken_code_digit.active {
    border-color: #4A6FFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(74, 111, 255, 0.08);
}



.teamwanttoken_verify_btn {
    background: #4A6FFF;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.05rem !important;
    font-weight: 500;
    color: #FFFFFF;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
    height: 52px;
}

.teamwanttoken_verify_btn:hover:not(:disabled) {
    background: #3A5FEF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 111, 255, 0.2);
}

.teamwanttoken_verify_btn:active:not(:disabled) {
    transform: translateY(0);
}

.teamwanttoken_verify_btn:disabled {
    background: #E8E8E8;
    color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.teamwanttoken_verify_btn:focus {
    color: #E8E8E8 !important;
}

.teamwanttoken_footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #F0F0F0;
    font-size: 11px;
    color: #999999;
    text-align: center;
    letter-spacing: 0.1px;
}

/* Admin-specific styles */
/* .bootstrap #login-panel {
    width: 500px;
    margin: 0 auto;
    position: absolute;
    top: 50px;
} */

.teamwant_qr_container {
    display: flex;
    justify-content: center;
}

#content.bootstrap {
    padding: 105px 10px;
}

#shop_name {
    font-weight: 700;
    font-size: 2rem;
}

button#skip_token {
    border: none;
    background: no-repeat;
}

button#token_logout {
    border: none;
    background: no-repeat;
}

.bootstrap p.token_info, p.token_info {
    color: #bcbdbd;
    margin-top: 5px;
    font-family: "Open Sans",helvetica,arial,sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.teamwanttoken_info {
    margin:0;
}

.teamwanttoken_container .show_code_after_qr {
    text-align: center;
}

/* Responsywność */
@media (max-width: 480px) {
    .teamwanttoken_container {
        padding: 32px 24px;
        margin: 0 16px;
        border-radius: 16px;
    }

    .teamwanttoken_code_inputs {
        gap: 10px;
    }

    .teamwanttoken_code_digit {
        width: 46px;
        height: 56px;
        font-size: 22px;
        border-radius: 10px;
    }

    .teamwanttoken_verify_btn {
        padding: 14px;
        height: 48px;
    }
}