/* AWS Cognito Auth Buttons Styles */
.cognito-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.cognito-login-btn {
    background-color: #007cba;
    color: white;
}

.cognito-login-btn:hover {
    background-color: #005a87;
    color: white;
}

.cognito-register-btn {
    background-color: #28a745;
    color: white;
}

.cognito-register-btn:hover {
    background-color: #1e7e34;
    color: white;
}

.cognito-logout-btn {
    background-color: #dc3545;
    color: white;
}

.cognito-logout-btn:hover {
    background-color: #bd2130;
    color: white;
}

.cognito-buttons-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .cognito-buttons-container {
        flex-direction: column;
    }
    
    .cognito-btn {
        width: 100%;
    }
}

/* Стили для сообщений об ошибках */
.cognito-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.cognito-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

/* Cognito Header Buttons Styles */
.cognito-header-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-buttons-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Улучшенные стили кнопок */
.cognito-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    min-width: 80px;
}

.cognito-login-btn {
    background-color: #007cba;
    color: white;
    border: 2px solid #007cba;
}

.cognito-login-btn:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: white;
}

.cognito-register-btn {
    background-color: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.cognito-register-btn:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    color: white;
}

.cognito-logout-btn {
    background-color: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.cognito-logout-btn:hover {
    background-color: #bd2130;
    border-color: #bd2130;
    color: white;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .cognito-header-buttons {
        position: static;
        text-align: center;
        margin: 10px 0;
        padding: 0 15px;
    }
    
    .auth-buttons-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cognito-btn {
        width: 100%;
        margin: 2px 0;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .cognito-header-buttons {
        margin: 5px 0;
    }
    
    .user-greeting {
        font-size: 13px;
    }
    
    .cognito-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}