@import url('/css/root.css');

* {
    font-family: 'Roboto Regular';
}

@font-face {
    font-family: 'Roboto Regular';
    src: local('Roboto'), local('Roboto-Regular'),
        url('/webfonts/roboto-regular.woff') format('woff'),
        url('/webfonts/roboto-regular.woff2') format('woff2');
}

body {
    margin: 0;
    background-color: var(--surface);

    min-height: 100vh;
}

span, li {
    font-size: 16px;
    line-height: 1.5;
}

#main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-wrapper {
    width: 100%;
    max-width: 360px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-wrapper {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-wrapper[style*="display: none"] {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.auth-wrapper:not([style*="display: none"]) {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.login-auth-block {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-20px);
}

.auth-wrapper h1 {
    color: var(--on-surface);
}

.auth-wrapper ol {
    list-style: none;
    counter-reset: item;
    padding: 0 1.75rem;
}

.auth-wrapper ol li {
    counter-increment: item;
    text-align: left;
    margin: .75rem 0;
    display: flex;
}

.auth-wrapper ol li span {
    color: var(--on-surface);
}

.auth-wrapper ol li::before {
    content: counter(item);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0;
    margin: 0 .75rem 0 0;
    background: var(--primary);
    border-radius: 50%;
    font-size: smaller;
    color: var(--on-primary);
    margin-top: 1px;
}

.auth-form {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-message {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
}

.qr-outer {
    width: 360px;
    height: 280px;
}  

.qr-image {
    width: 280px;
    height: 280px;
}

.buttons-wrapper {
    width: 360px;
}

.ripple-button {
    text-transform: uppercase;
    color: var(--primary);
    font-size: 16px;
    width: 100%;
    height: 54px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 10px;
    border: none;
}

.ripple-button:hover {
    background-color: #f8dad3;
}

.ripple-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f7f4f2 inset !important; /* фон как у input */
    box-shadow: 0 0 0 1000px #f7f4f2 inset !important;
    -webkit-text-fill-color: #11181c !important; /* цвет текста */
    border-radius: 1.2rem; /* чтобы не ломался скруглённый угол */
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e2a36;
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
    text-align: left;
}

.input-field {
    display: flex;
    align-items: center;
    background-color: #f7f4f2;
    border-radius: 1.2rem;
    border: 1px solid #e7ddd8;
    transition: all 0.2s;
    padding: 0.1rem 0.8rem;
}

.input-field:focus-within {
    border-color: #c8b8b2;
    box-shadow: 0 0 0 2px rgba(200, 184, 178, 0.45);
}

.input-field input:focus {
    outline: none;
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color:#7a625a;
    flex-shrink: 0;
}

.input-field input {
    width: 100%;
    padding: 0.8rem 0.5rem 0.8rem 0.3rem;
    border: none;
    background-color: #f7f4f2;
    font-size: 1rem;
    outline: none;
    font-weight: 450;
    color: #11181c;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    margin-bottom: 1rem;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color:#7a625a;
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-btn.active:hover {
    opacity: 0.9;
}

.lang-btn:not(.active):hover {
    background-color: #f8dad3;
}

.primary-button {
    width: 100%;
    height: 54px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s; 
}

.primary-button:hover {
    opacity: 0.9;
}

.primary-button:disabled {
    opacity: 0.6;
}