﻿/* ========== БАЗОВЫЕ НАСТРОЙКИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, #000000, #000000);
    color: #222;
    font-family: "Segoe UI", Tahoma, Helvetica, Arial, sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
#fullPage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#brandingWrapper {
    display: none;
}

/* ========== ОКОШКО С ФОРМОЙ ========== */
#contentWrapper {
    width: 440px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 520px;
    max-height: 85vh;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#content {
    padding: 50px 45px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#companyLogo {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 180px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
}

/* ========== ЗАГОЛОВОК ========== */
#loginMessage.groupMargin {
    font-family: "Segoe UI", "Segoe UI Light", Arial, sans-serif;
    font-size: 2.1em;
    font-weight: 300;
    color: #d4a017;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 1px;
}

#loginMessage.groupMargin::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #d4a017, #f1f1f1);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.4);
}

/* ========== ЭЛЕМЕНТЫ ФОРМЫ ========== */
#workArea {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#userNameInputLabel {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

input.text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1em;
    background-color: #fafafa;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

input.text:focus {
    border-color: #d4a017;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.15);
    outline: none;
}

/* ========== КНОПКИ "ДАЛЕЕ" И "ВХОД" ========== */
#nextButton,
.next,
span#nextButton,
#submitButton,
span#submitButton,
.submit,
.submitPaginated {
    display: block !important;
    background: linear-gradient(135deg, #d4a017, #b8860b) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
    border-radius: 12px !important;
    padding: 14px 30px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.3) !important;
    width: 100% !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
}

/* Эффект при наведении для всех кнопок */
#nextButton:hover,
.next:hover,
span#nextButton:hover,
#submitButton:hover,
span#submitButton:hover,
.submit:hover,
.submitPaginated:hover {
    background: linear-gradient(135deg, #b8860b, #996515) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4) !important;
    color: #ffffff !important;
}

/* Активное состояние */
#nextButton:active,
.next:active,
span#nextButton:active,
#submitButton:active,
span#submitButton:active,
.submit:active,
.submitPaginated:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3) !important;
}

/* Фокус для доступности */
#nextButton:focus,
.next:focus,
span#nextButton:focus,
#submitButton:focus,
span#submitButton:focus,
.submit:focus,
.submitPaginated:focus {
    outline: 2px solid #d4a017 !important;
    outline-offset: 2px !important;
}

/* ========== ССЫЛКИ И ФУТЕР ========== */
a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#footer {
    margin-top: 30px;
    padding: 20px 0 0;
    text-align: center;
    font-size: 0.8em;
    color: #ffffff;
    border-top: 1px solid #ffffff;
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media only screen and (max-width: 768px) {
    html, body {
        overflow: auto;
        padding: 10px;
    }
    
    #contentWrapper {
        width: 95%;
        max-width: 400px;
        border-radius: 16px;
        min-height: 480px;
    }
    
    #content {
        padding: 40px 30px;
    }
    
    #loginMessage.groupMargin {
        font-size: 1.9em;
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 480px) {
    #contentWrapper {
        width: 98%;
        border-radius: 14px;
        min-height: 450px;
    }
    
    #content {
        padding: 30px 25px;
    }
    
    #loginMessage.groupMargin {
        font-size: 1.7em;
        margin-bottom: 25px;
    }
    
    input.text {
        height: 44px;
        font-size: 0.95em;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */
.groupMargin {
    margin-bottom: 25px;
}

.hidden {
    display: none;
}

/* Улучшения для высоких экранов */
@media only screen and (min-height: 900px) {
    #contentWrapper {
        min-height: 560px;
    }
}

/* Улучшения для низких экранов */
@media only screen and (max-height: 600px) {
    #contentWrapper {
        min-height: 420px;
        max-height: 95vh;
    }
    
    #content {
        padding: 30px 35px;
    }
}