﻿.parent-header-autor-container {
    display: flex;
    justify-content: center; /* горизонтальное выравнивание */
    align-items: center; /* вертикальное выравнивание */
    height: 100vh; /* высота родительского контейнера равна высоте окна браузера */
}

.header-wrapper {
    position: relative;
    width: 30%;
    height: auto;
    background: #FFFFFF;
    border-radius: 20px;
    z-index: 100;
}

.header-autor {
    width: 100%;
    height: auto;
    background: #FFFFFF;
    border-radius: 20px;
    position: relative;
    z-index: 100 !important; /* ✅ Гарантируем приоритет */
    top: 15px;
    border: 1px solid #A38C7C;
}

.main-autor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.authorization {
    width: 100%;
    height: 90px;
    font-size: 23px;
    text-align: center;
    top: -40px;
    background: #ECE8E2;
    opacity: 0.8;
    border: 1px solid #A38C7C;
    border-radius: 20px;
    z-index: 1;
    position: absolute;
    font-family: 'Ysabeau Infant Medium', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    text-transform: uppercase;
    color: #3F2E21;
    padding-top: 15px;
}

.login-input, .password-input {
    width: 90%;
    height: 50px;
    border: 1px solid #A38C7C;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3px;
    margin-left: 5%;
    font-family: 'Ysabeau Infant Medium';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 19px;
    /* identical to box height */
    color: #8D7563;
}

    .login-input::placeholder, .password-input::placeholder {
        color: rgba(220, 47, 12, 1);
        font-family: 'Ysabeau Infant Medium';
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 19px;
        /* identical to box height */
        color: #8D7563;
    }

.button-autor {
    width: 90%;
    height: 50px;
    background: #A38C7C !important;
    border-radius: 20px;
    margin-left: 5%;
    transition: background-color 0.3s, box-shadow 0.3s; /*Плавный переход*/

    font-family: 'Ysabeau Infant Medium';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    text-transform: uppercase;
    color: #3F2E21;
}

    .button-autor button {
        width: 90%;
        height: 100%;
    }

        .button-autor button:focus {
            outline: none; /* Цвет при фокусировке */
        }

        .button-autor button:hover {
            background-color: rgba(230, 230, 230, 1);*/ /* Цвет при наведении */
        }

        .button-autor button:active {
            background-color: rgba(210, 210, 210, 1);*/ /* Цвет при нажатии */
        }

.button-text {
    font-family: 'Ysabeau Infant Medium';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 21px;
    text-align: center;
    text-transform: uppercase;
    color: #3F2E21;
}

.common_field_text_error {
    color: #B76565 !important;
    font-family: Ysabeau Infant Medium;
    font-weight: bold;
    font-size: 18px;
    opacity: 1;
	margin-left: 30px;
    text-align: left;
}

@media (max-width: 768px) {
    .parent-header-autor-container {
        height: 100vh;
        padding: 20px 15px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-wrapper {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        min-height: 320px !important;
        margin: 0 auto;
    }

    .header-autor {
        width: 100% !important;
        height: auto !important;
        min-height: 320px !important;
        top: 0 !important;
        margin: 0 auto;
        border: 1px solid #A38C7C;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .authorization {
        width: 100% !important;
        height: 70px !important;
        font-size: 18px !important;
        line-height: 1.3 !important;
        padding-top: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    .main-autor {
        padding: 40px 0 30px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .login-input,
    .password-input {
        width: 90% !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 auto 15px auto !important;
        padding: 15px !important;
        font-size: 16px !important; /* Предотвращает зум на iOS */
        box-sizing: border-box !important;
        display: block !important;
    }

        .login-input::placeholder,
        .password-input::placeholder {
            font-size: 14px !important;
        }

    .button-autor {
        width: 90% !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 20px auto 0 auto !important;
        padding: 0 !important;
        display: block !important;
    }

        .button-autor button {
            width: 100% !important;
            height: 100% !important;
            font-size: 16px !important;
            min-height: 50px !important;
        }

    .button-text {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .common_field_text_error {
        width: 90% !important;
        margin: 5px auto 10px auto !important;
        font-size: 14px !important;
        text-align: center !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    /* Безопасные зоны для iPhone */
    @supports (padding: max(0px)) {
        .parent-header-autor-container {
            padding-top: max(20px, env(safe-area-inset-top)) !important;
            padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
            padding-left: max(15px, env(safe-area-inset-left)) !important;
            padding-right: max(15px, env(safe-area-inset-right)) !important;
        }
    }

    /* Портретная ориентация */
    @media (orientation: portrait) {
        .header-wrapper {
            max-width: 350px !important;
        }

        .authorization {
            font-size: 16px !important;
            height: 65px !important;
            top: -32px !important;
        }
    }

    /* Ландшафтная ориентация */
    @media (orientation: landscape) {
        .parent-header-autor-container {
            padding: 10px !important;
        }

        .header-wrapper {
            max-width: 350px !important;
            min-height: 300px !important;
        }

        .header-autor {
            min-height: 300px !important;
        }

        .authorization {
            top: -30px !important;
            height: 60px !important;
            font-size: 16px !important;
            padding-top: 8px !important;
        }

        .main-autor {
            padding: 35px 0 25px 0 !important;
        }

        .login-input,
        .password-input {
            height: 45px !important;
            min-height: 45px !important;
            margin-bottom: 10px !important;
            font-size: 15px !important;
        }

        .button-autor {
            height: 45px !important;
            min-height: 45px !important;
            margin-top: 15px !important;
        }
    }
}

.google-register-wrapper {
    font-family: 'Ysabeau Infant Medium', sans-serif;
    text-align: center;
    margin: 4px 0;
}

.google-register-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.google-register-button {
    display: flex;
    justify-content: center;
}

    /* Кнопка Google внутри контейнера */
    .google-register-button .g_id_signin {
        display: flex;
        justify-content: center;
        width: 100%;
    }

        .google-register-button .g_id_signin > div {
            width: 100% !important;
            max-width: 280px !important;
        }

/* Адаптив */
@media (max-width: 480px) {
    .google-register-button .g_id_signin > div {
        max-width: 100% !important;
    }
}