@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    --0: #181818;
    --500: #8B8B8B;
    --800: #F5F7F9;
    --1000: #FFFFFF;
    /* brand colors */
    --brand-color-primary: #0068FF;
    --brand-color-secondary: #0068FF;
    /* text colors */
    --primary-text-color: var(--0);
    --secondary-text-color: var(--500);
    --inverted-text-color: var(--1000);
    --main-surface-primary: var(--1000);
    --main-surface-secondary: var(--800);
    --button-height: 55px;
    --input-height: 50px;
    --main-border-radius: 12px;
    --secondary-border-radius: 16px;
}


*{
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
}

body {
    position: relative;
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: fit-content;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(0, 104, 255, 1) 100%); 
}
.SO_Container{
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-height: 100vh;
    height: fit-content;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 24px; 
    max-width: 600px;
}
.O_Form{
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
    height: fit-content;
    z-index: 100;
}
.M_Input{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: fit-content;
    border-radius: var(--main-border-radius);
    background-color: var(--main-surface-primary);
    padding: 12px;
    box-shadow: 0px 0px 4px 0px #0068FF;
}
.W_TitleAndSubtitle{
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    height: fit-content;
}
.A_Title{
    font-size: 16px;
    color: var(--primary-text-color);
    font-weight: 600;
}
.A_Subtitle{
    font-size: 12px;
    color: var(--secondary-text-color);
    font-weight: 400;
}
.A_Logo{
    width: 40px;
    margin-bottom: 6px;
    height: 40px;
}
.A_Input{
    width: 100%;
    height: var(--input-height);
    background-color: var(--main-surface-secondary);
    border-radius: var(--main-border-radius);
    padding: 0 12px;
    font-size: 16px;
    color: var(--primary-text-color);
    font-weight: 400;
    border: 1px solid var(--main-surface-secondary);
    font-family: 'Manrope', sans-serif;
}

.A_Textarea {
    height: auto;
    min-height: 80px;
    padding: 12px;
    resize: none;
    overflow: hidden;
    line-height: 1.4;
}
.A_Button{
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: var(--button-height);
    font-weight: 600;
    background: linear-gradient(90deg, #28B7FF 0%, #0068FF 30%, #0068FF 70%, #28B7FF 100%);
    color: var(--inverted-text-color);
    box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.75) inset;
    border-radius: var(--secondary-border-radius);
    cursor: pointer;
    outline: none;
    border: none;
    transition: all 0.3s ease;
}
.Q_ButtonOverlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/button_bg.png');
    background-size: fit;
    border-radius: var(--secondary-border-radius);
    z-index: 10;
    overflow: hidden;
}
@keyframes flyRightToLeft {
    0% {
        transform: rotate(20deg) translate(0, -50%);
        left: 100%;
    }
    100% {
        transform: rotate(20deg) translate(0, -50%);
        left: -10%;
    }
}

.A_Glow{
    position: absolute;
    top: 50%;
    left: 0;
    width: 2%;
    height: 200%;
    opacity: 0.5;
    background-color: #fff;
    z-index: 11;
    animation: flyRightToLeft 1.5s ease-in-out infinite;
    filter: blur(10px);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
}
.A_Background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/button_bg.png');
    background-size: fit;
    background-position: center;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.A_ButtonText {
    position: relative;
    z-index: 16;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--inverted-text-color);
}

/* Превью изображения */
.image-preview img {
    border-radius: var(--main-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-name-display {
    background-color: var(--main-surface-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--secondary-text-color);
}

/* Экраны успеха и ошибки */
.success-container, .error-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 24px; 
    max-width: 600px;
}

.success-content, .error-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.success-icon, .error-icon {
    width: 80px;
    height: 80px;
}

.success-content h2, .error-content h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-text-color);
    text-align: center;
    width: 100%;
}

.success-content p, .error-content p {
    font-size: 14px;
    color: var(--primary-text-color);
    line-height: 1.1;
    text-align: center;
    width: 100%;
}

/* Дополнительный паддинг для iOS */
.ios-device .SO_Container {
    padding-bottom: 32px;
}

/* Дополнительный паддинг для больших экранов мобильных устройств */
/* @media screen and (min-height: 700px) and (max-width: 768px) {
    .SO_Container {
        padding-bottom: 100px;
    }
}

/* Еще больший паддинг для очень больших экранов */
@media screen and (min-height: 900px) and (max-width: 768px) {
    .SO_Container {
        padding-bottom: 120px;
    }
}

/* Неактивная кнопка */
.A_Button.U_Disabled {
    pointer-events: none;
    cursor: not-allowed;
    background: #A4A4A4;
}
